Re: GtkNotebook problems
- From: Owen Taylor <otaylor redhat com>
 
- To: gtk-devel-list redhat com
 
- Cc: Damon Chaplin <damon karuna freeserve co uk>
 
- Subject: Re: GtkNotebook problems
 
- Date: 24 Jan 2000 11:11:43 -0500
 
Damon Chaplin <damon@karuna.freeserve.co.uk> writes:
> Owen Taylor wrote:
> > 
> > Damon Chaplin <damon@karuna.freeserve.co.uk> writes:
> > 
> > > I think there are a couple of problems with GtkNotebook (GTK+ 1.2.6):
> > >
> > >  1) gtk_notebook_real_switch_page() currently queues a resize, but
> > >     for complicated layouts this can make page switching quite slow,
> > 
> > Really? Resizing is almost always pretty instantaneous.
> 
> I'm rewriting the Day view of gnome-cal, using a GnomeCanvas. After a bit
> more investigation it seems that the problem is that the Year view adds an
> idle function during size_allocate which takes quite a bit of time, so when
> the notebook switches to my view it gets repainted slowly (about 0.5 sec delay).
> 
> So doing a resize can be slow, though I'm not sure why the Year view is that
> slow. Maybe just too many canvas items (something like 540).
Perhaps the year view just needs a tweak to avoid recomputing the layout
when the size doesn't actually change (that is, the stuff done
in year-view.c:idle_handler). The canvas's ::size_allocate routine doesn't
look like it really takes any time.
Regards,
                                        Owen
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]