Commit 900f54e6 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

as a workaround for bug #360106, set a timeout that presents the dialog

2007-08-07  Sven Neumann  <sven@gimp.org>

	* app/gui/gui-vtable.c (gui_pdb_dialog_new): as a workaround for
	bug #360106, set a timeout that presents the dialog window.

	* app/widgets/gimppdbdialog.c (gimp_pdb_dialog_set_property):
	formatting.

svn path=/trunk/; revision=23133
parent 852170b6
2007-08-07 Sven Neumann <sven@gimp.org>
* app/gui/gui-vtable.c (gui_pdb_dialog_new): as a workaround for
bug #360106, set a timeout that presents the dialog window.
* app/widgets/gimppdbdialog.c (gimp_pdb_dialog_set_property):
formatting.
2007-08-07 Sven Neumann <sven@gimp.org>
* app/core/gimpimage.c (gimp_image_get_icc_profile): return NULL
......@@ -330,6 +330,14 @@ gui_free_progress (Gimp *gimp,
gtk_widget_destroy (GTK_WIDGET (progress));
}
static gboolean
gui_pdb_dialog_present (GtkWindow *window)
{
gtk_window_present (window);
return FALSE;
}
static gboolean
gui_pdb_dialog_new (Gimp *gimp,
GimpContext *context,
......@@ -427,6 +435,17 @@ gui_pdb_dialog_new (Gimp *gimp,
gtk_widget_show (dialog);
/* workaround for bug #360106 */
{
GSource *source = g_timeout_source_new (200);
GClosure *closure = g_cclosure_new_object (G_CALLBACK (gui_pdb_dialog_present),
dialog);
g_source_set_closure (source, closure);
g_source_attach (source, NULL);
g_source_unref (source);
}
return TRUE;
}
}
......
......@@ -244,24 +244,30 @@ gimp_pdb_dialog_set_property (GObject *object,
case PROP_PDB:
dialog->pdb = GIMP_PDB (g_value_dup_object (value));
break;
case PROP_CONTEXT:
dialog->caller_context = GIMP_CONTEXT (g_value_dup_object (value));
break;
case PROP_SELECT_TYPE:
dialog->select_type = g_value_get_gtype (value);
break;
case PROP_INITIAL_OBJECT:
/* don't ref, see constructor */
dialog->initial_object = g_value_get_object (value);
break;
case PROP_CALLBACK_NAME:
if (dialog->callback_name)
g_free (dialog->callback_name);
dialog->callback_name = g_value_dup_string (value);
break;
case PROP_MENU_FACTORY:
dialog->menu_factory = (GimpMenuFactory *) g_value_dup_object (value);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break;
......
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