if called with (ensure_visibility == TRUE), raise the toolbox. Fixes bug

2005-01-09  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdialogfactory.c (gimp_dialog_factories_toggle):
	if called with (ensure_visibility == TRUE), raise the toolbox.
	Fixes bug #163381.
This commit is contained in:
Sven Neumann 2005-01-09 00:08:42 +00:00 committed by Sven Neumann
parent b7e646fc8f
commit f571ceebec
2 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-01-09 Sven Neumann <sven@gimp.org>
* app/widgets/gimpdialogfactory.c (gimp_dialog_factories_toggle):
if called with (ensure_visibility == TRUE), raise the toolbox.
Fixes bug #163381.
2005-01-08 DindinX <dindinx@gimp.org>
* plug-ins/common/mosaic.c: made the preview fast enough to be useful.

View File

@ -1082,7 +1082,17 @@ gimp_dialog_factories_toggle (GimpDialogFactory *toolbox_factory,
return;
if (ensure_visibility && toggle_state != GIMP_DIALOG_HIDE_ALL)
return;
{
GList *list;
for (list = toolbox_factory->open_dialogs; list; list = list->next)
{
if (GTK_IS_WIDGET (list->data) && GTK_WIDGET_TOPLEVEL (list->data))
gtk_window_present (GTK_WINDOW (list->data));
}
return;
}
doing_update = TRUE;