GNOME Bugzilla – Bug 82382
"size-changed" signal for GtkWidget
Last modified: 2004-12-22 21:47:04 UTC
if a container put a child into his box, the size of container itself changed. I wanna take the "size-changed" signal as trigger to reflow box model. http://developer.gnome.org/doc/API/2.0/gtk/gtkwidget.html#GTKWIDGET-SIZE-REQUEST is similar but not exactly. it's manual, I want gtk-native.
It's called "size_allocate"
OK, should provide a little more detail. The GTK+ model is that when the size of a widget changes it queues a resize by calling gtk_widget_queue_resize(); this is handled internal to GTK+, and when GTK+ is ready, the parent container first gets a ::size_request signal, in response to which it computers its requested size based on the size of all children, then gets allocated the new size via ::size-allocate. At which point in it then calls gtk_widget_size_allocate() on its children. this is how containers layout their children in the GTK+ system. Ww are not changing the GTK+ layout model to match the needs of an HTML widget.
I basically agree with you that gtk is not for html rendering toolkit, just graphical toolkit. but 'cos I have browser engine in my mind, I frequently ask html-intergrated feature. yeah, sometimes it'll be stupid question. if then, pliz excuse me and tell me not to do that. thanks.
I'd hate to tell someone *not to* file bugs, since usually I'm telling people *to* file bugs. But there are 600+ open bugs for GTK+ right now. We are pretty busy with our primary task of making GTK+ a nice, robust toolkit for normal GUI apps.