GNOME Bugzilla – Bug 629471
make size_request and size_allocate just vfuncs, not signals
Last modified: 2014-05-22 00:25:34 UTC
The methods on GtkSizeRequest are not signals, so having the deprecated size_request be a signal is kind of bloat. It's easier to imagine a reason to connect to size_allocate, but a notify::allocation (i.e. make allocation a property) would probably be a better alternative. Right now there's no notify::allocation but there likely should be.
There's a few places where we connect to 'size-request' inside gtk itself; those would have to be fixed: [mclasen@planemask gtk+]$ grep "size-request" gtk/*.c | grep connect gtk/gtkpathbar.c: g_signal_connect (label_alignment, "size-request", gtk/gtktoolitemgroup.c: g_signal_connect_after (alignment, "size-request",
Looks like both of these could be replaced with a call to the proposed set_natural_size(), run from inside style_set(). Well, assuming the flavor of set_natural_size() was "increase only"
size-request will be removed completely in GTK+3.0 . See bug #633324
size-request signal was completely removed in GTK+3. Can we close this?
Yes I think we should close this. The original bug was concerning size-request and that's gone. Now we've released 3.0 so it doesnt make sense to break api to remove the size-allocate signal.