Re: 'configure_event' of gtkLayout



'size_allocate' is what I am using right now, but the event is initiated in a
dead loop if I resize the child widgets inside a layout. I solved the dead
loop problem by setting the widget->parent to null before calling
gtk_widget_set_usize() and restored the parent after that, but the size I get
is not exactly what I set. So, I was wondering if I can capture the
'configure_event' and do the resizing there but I could not capture the event.



Regards

Yanxin

Havoc Pennington wrote:

On Fri, Nov 15, 2002 at 09:03:53PM -0500, yanxin wrote:

How can I capture the 'configure_event' of a gtkLayout? I am not able to
capture it even though after I set all the event mask for the gtkLayout.


You want to use size_allocate instead. (configure_event is in the
example for GtkDrawingArea, but only works for DrawingArea and really
size_allocate can be used there too).

Havoc
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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