Re: configure_event for eventbox



On Wed, Aug 15, 2007 at 12:17:00PM -0700, Darren Hart wrote:
> I'm trying to create a widget that lists checkbuttons with labels in a
> tabular format that will adjust it's layout as the window is resized.  I am
> currently using a table widget and have a working resize() method.
> Unfortunately, I haven't been able to capture any kind of a resize event
> other than size_allocate() which unfortunately caused an endless loop since
> my resize()ing the table caused another size_allocate() call apparently.

But it should converge, innit?  If it doesn't converge, you
have probably a deeper problem.  Also don't resize the table
if you don't want to actually resize it (i.e. the new sizes
would be the same), this might help.  Look at Gimp's toolbox
widget which does something similar.

> Reading the docs suggest that what I want to use is a configure_event
> handler

Only windows get configure events.  (And GtkDrawingArea for
some obscure reason, but it gets it only because it
synthetizes it and sends to itself.)

Yeti

--
http://gwyddion.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]