mirror of https://github.com/GNOME/gimp.git
use gtk_widget_size_request() instead of _get_child_requisition() because
2004-06-03 Michael Natterer <mitch@gimpmp.org> * app/widgets/gimptoolbox.c (gimp_toolbox_size_allocate): use gtk_widget_size_request() instead of _get_child_requisition() because we need to know the size of the toolbox' areas even if they are invisible. Fixes SIGFPE spotted by Jimmac.
This commit is contained in:
parent
a2955426b2
commit
aec32205c8
|
@ -1,3 +1,10 @@
|
|||
2004-06-03 Michael Natterer <mitch@gimpmp.org>
|
||||
|
||||
* app/widgets/gimptoolbox.c (gimp_toolbox_size_allocate): use
|
||||
gtk_widget_size_request() instead of _get_child_requisition()
|
||||
because we need to know the size of the toolbox' areas
|
||||
even if they are invisible. Fixes SIGFPE spotted by Jimmac.
|
||||
|
||||
2004-06-03 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/widgets/gimpcursor.c: some cleanup. Make the tool_cursor
|
||||
|
|
|
@ -396,12 +396,9 @@ gimp_toolbox_size_allocate (GtkWidget *widget,
|
|||
gint area_rows;
|
||||
gint area_columns;
|
||||
|
||||
gtk_widget_get_child_requisition (toolbox->color_area,
|
||||
&color_requisition);
|
||||
gtk_widget_get_child_requisition (toolbox->foo_area,
|
||||
&foo_requisition);
|
||||
gtk_widget_get_child_requisition (toolbox->image_area,
|
||||
&image_requisition);
|
||||
gtk_widget_size_request (toolbox->color_area, &color_requisition);
|
||||
gtk_widget_size_request (toolbox->foo_area, &foo_requisition);
|
||||
gtk_widget_size_request (toolbox->image_area, &image_requisition);
|
||||
|
||||
width = MAX (color_requisition.width,
|
||||
MAX (foo_requisition.width,
|
||||
|
|
Loading…
Reference in New Issue