gtk_widget_show() and the 'size-allocate' signal



I recently connected to the "size-allocate" signal on a parent and child
widget.

When I call gtk_widget_show() on a parent of the parent, the child widget's
"size-allocate" signal handler is called before the parent widget's
"size-allocate" signal handler.  This creates a problem because I was
expecting my particular parent to be the one that gives the child its
"size-allocate" signal.

I know GTK normally works from bottom to top, but I thought "size-allocate"
was one of the signals that travels from top to bottom... Where does the 1st
"size-allocate" signal start?

I'm also having trouble installing all the development source packages I
need to see what exactly is going on (ubuntu).  All I see are a bunch of
function calls from libgtk-x11-2.0.so.0 and no source code.

~Thanks



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