apply evil size_request hacks to the color/image/foo areas' wrapbox

2005-02-21  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimptoolbox.c (toolbox_area_notify): apply evil
	size_request hacks to the color/image/foo areas' wrapbox because
	its child requisition/allocation code is apparently broken. Works
	around bug #162500.
This commit is contained in:
Michael Natterer 2005-02-21 18:21:50 +00:00 committed by Michael Natterer
parent 4339fb30aa
commit b83dff24d5
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2005-02-21 Michael Natterer <mitch@gimp.org>
* app/widgets/gimptoolbox.c (toolbox_area_notify): apply evil
size_request hacks to the color/image/foo areas' wrapbox because
its child requisition/allocation code is apparently broken. Works
around bug #162500.
2005-02-21 Sven Neumann <sven@gimp.org>
* plug-ins/common/emboss.c: fixed emboss on small images (bug #168022).

View File

@ -894,11 +894,20 @@ toolbox_area_notify (GimpGuiConfig *config,
config->toolbox_foo_area ||
config->toolbox_image_area)
{
GtkRequisition req;
gtk_widget_show (area->parent);
#ifdef __GNUC__
#warning FIXME: fix GtkWrapBox child requisition/allocation instead of hacking badly (bug #162500).
#endif
gtk_widget_size_request (area, &req);
gtk_widget_set_size_request (area->parent, req.width, req.height);
}
else
{
gtk_widget_hide (area->parent);
gtk_widget_set_size_request (area->parent, -1, -1);
}
g_object_get (config, pspec->name, &visible, NULL);