GNOME Bugzilla – Bug 548026
No accessor for GtkWidget.requisition
Last modified: 2011-02-04 16:12:14 UTC
It looks like GtkWidget.requisition didn't get an accessor during the recent sealing. Is this intentional?
The sealing is not finished yet. There is still much to seal and that is going to be done in Gtk 2.16. See http://live.gnome.org/GTK%2B/3.0/Tasks
Is this really needed? We have gtk_widget_size_request()
*** Bug 610462 has been marked as a duplicate of this bug. ***
Yes it is needed, not when 3rd party code wants to know the widget's requisition, but in widget implementations itself. Please have a look at the example in the dupplicate bug i just resolved.
Fixed in master: commit 347d406f80f2140a466da30764171cd92aa7d7ea Author: Michael Natterer <mitch@gimp.org> Date: Fri Feb 19 17:04:20 2010 +0100 Bug 548026 - No accessor for GtkWidget.requisition Add gtk_widget_get_requisition(). gtk/gtk.symbols | 1 + gtk/gtkwidget.c | 26 ++++++++++++++++++++++++++ gtk/gtkwidget.h | 3 +++ 3 files changed, 30 insertions(+), 0 deletions(-)