After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 82382 - "size-changed" signal for GtkWidget
"size-changed" signal for GtkWidget
Status: RESOLVED NOTABUG
Product: gtk+
Classification: Platform
Component: Widget: Other
2.0.x
Other All
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 82283
 
 
Reported: 2002-05-20 17:53 UTC by kz
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description kz 2002-05-20 17:53:57 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.
Comment 1 Owen Taylor 2002-05-20 18:13:24 UTC
It's called "size_allocate"
Comment 2 Owen Taylor 2002-05-20 18:18:09 UTC
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.



Comment 3 kz 2002-05-20 18:38:07 UTC
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.
Comment 4 Owen Taylor 2002-05-20 19:35:04 UTC
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.