Commit aec32205 authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer

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.
parent a2955426
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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment