Commit f72b8b1e authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

new function which does the same as gtk_dialog_run() except it does not

2003-11-11  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpdialog.[ch] (gimp_dialog_run): new function
	which does the same as gtk_dialog_run() except it does not make
	the dialog modal.

	* app/gui/resolution-calibrate-dialog.c
	* libgimp/gimpexport.c
	* plug-ins/*/*.c: use gimp_dialog_run() instead of gtk_dialog_run().

	* plug-ins/common/grid.c: set update_continuous to TRUE for
	the GimpColorButtons so this feature gets some testing.
parent e34358d8
2003-11-11 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpdialog.[ch] (gimp_dialog_run): new function
which does the same as gtk_dialog_run() except it does not make
the dialog modal.
* app/gui/resolution-calibrate-dialog.c
* libgimp/gimpexport.c
* plug-ins/*/*.c: use gimp_dialog_run() instead of gtk_dialog_run().
* plug-ins/common/grid.c: set update_continuous to TRUE for
the GimpColorButtons so this feature gets some testing.
2003-11-11 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpcolorbutton.[ch]: added new API
......@@ -246,7 +246,7 @@ resolution_calibrate_dialog (GtkWidget *resolution_entry,
gtk_widget_show (dialog);
switch (gtk_dialog_run (GTK_DIALOG (dialog)))
switch (gimp_dialog_run (GIMP_DIALOG (dialog)))
{
case GTK_RESPONSE_OK:
{
......
......@@ -246,7 +246,7 @@ resolution_calibrate_dialog (GtkWidget *resolution_entry,
gtk_widget_show (dialog);
switch (gtk_dialog_run (GTK_DIALOG (dialog)))
switch (gimp_dialog_run (GIMP_DIALOG (dialog)))
{
case GTK_RESPONSE_OK:
{
......
......@@ -369,7 +369,7 @@ confirm_save_dialog (const gchar *message,
gtk_widget_show (dialog);
switch (gimp_dialog_run (GTK_DIALOG (dialog)))
switch (gimp_dialog_run (GIMP_DIALOG (dialog)))
{
case GTK_RESPONSE_OK:
retval = GIMP_EXPORT_EXPORT;
......@@ -523,7 +523,7 @@ export_dialog (GSList *actions,
gtk_widget_show (dialog);
switch (gimp_dialog_run (GTK_DIALOG (dialog)))
switch (gimp_dialog_run (GIMP_DIALOG (dialog)))
{
case GTK_RESPONSE_OK:
retval = GIMP_EXPORT_EXPORT;
......
......@@ -266,3 +266,126 @@ gimp_dialog_add_buttons_valist (GimpDialog *dialog,
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
}
}
typedef struct
{
GtkDialog *dialog;
gint response_id;
GMainLoop *loop;
gboolean destroyed;
} RunInfo;
static void
run_shutdown_loop (RunInfo *ri)
{
if (g_main_loop_is_running (ri->loop))
g_main_loop_quit (ri->loop);
}
static void
run_unmap_handler (GtkDialog *dialog,
RunInfo *ri)
{
run_shutdown_loop (ri);
}
static void
run_response_handler (GtkDialog *dialog,
gint response_id,
RunInfo *ri)
{
ri->response_id = response_id;
run_shutdown_loop (ri);
}
static gint
run_delete_handler (GtkDialog *dialog,
GdkEventAny *event,
RunInfo *ri)
{
run_shutdown_loop (ri);
return TRUE; /* Do not destroy */
}
static void
run_destroy_handler (GtkDialog *dialog,
RunInfo *ri)
{
/* shutdown_loop will be called by run_unmap_handler */
ri->destroyed = TRUE;
}
/**
* gimp_dialog_run:
* @dialog: a #GimpDialog
*
* This function does exactly the same as gtk_dialog_run() except it
* does not make the dialog modal while the #GMainLoop is running.
*
* Return value: response ID
**/
gint
gimp_dialog_run (GimpDialog *dialog)
{
RunInfo ri = { NULL, GTK_RESPONSE_NONE, NULL };
gulong response_handler;
gulong unmap_handler;
gulong destroy_handler;
gulong delete_handler;
g_return_val_if_fail (GIMP_IS_DIALOG (dialog), -1);
g_object_ref (dialog);
gtk_window_present (GTK_WINDOW (dialog));
response_handler =
g_signal_connect (dialog,
"response",
G_CALLBACK (run_response_handler),
&ri);
unmap_handler =
g_signal_connect (dialog,
"unmap",
G_CALLBACK (run_unmap_handler),
&ri);
delete_handler =
g_signal_connect (dialog,
"delete_event",
G_CALLBACK (run_delete_handler),
&ri);
destroy_handler =
g_signal_connect (dialog,
"destroy",
G_CALLBACK (run_destroy_handler),
&ri);
ri.loop = g_main_loop_new (NULL, FALSE);
GDK_THREADS_LEAVE ();
g_main_loop_run (ri.loop);
GDK_THREADS_ENTER ();
g_main_loop_unref (ri.loop);
ri.loop = NULL;
ri.destroyed = FALSE;
if (!ri.destroyed)
{
g_signal_handler_disconnect (dialog, response_handler);
g_signal_handler_disconnect (dialog, unmap_handler);
g_signal_handler_disconnect (dialog, delete_handler);
g_signal_handler_disconnect (dialog, destroy_handler);
}
g_object_unref (dialog);
return ri.response_id;
}
......@@ -72,6 +72,8 @@ GtkWidget * gimp_dialog_new_valist (const gchar *title,
void gimp_dialog_add_buttons_valist (GimpDialog *dialog,
va_list args);
gint gimp_dialog_run (GimpDialog *dialog);
G_END_DECLS
......
......@@ -1218,7 +1218,7 @@ main_dialog (GimpDrawable *drawable)
image_setup (drawable, TRUE);
if (gtk_dialog_run (GTK_DIALOG (appwin)) == GTK_RESPONSE_OK)
if (gimp_dialog_run (GIMP_DIALOG (appwin)) == GTK_RESPONSE_OK)
run = TRUE;
if (preview_rgb_data != NULL)
......
......@@ -1486,7 +1486,7 @@ main_dialog (GimpDrawable *drawable)
image_setup (drawable, TRUE);
if (gtk_dialog_run (GTK_DIALOG (appwin)) == GTK_RESPONSE_OK)
if (gimp_dialog_run (GIMP_DIALOG (appwin)) == GTK_RESPONSE_OK)
run = TRUE;
gtk_widget_destroy (appwin);
......
......@@ -570,7 +570,7 @@ save_dialog (void)
gtk_widget_show (frame);
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -1520,7 +1520,7 @@ CML_explorer_dialog (void)
CML_preview_defer = FALSE;
preview_update ();
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......@@ -1942,7 +1942,7 @@ function_graph_new (GtkWidget *widget,
gtk_widget_show (preview);
gtk_widget_show (dlg);
gtk_dialog_run (GTK_DIALOG (dlg));
gimp_dialog_run (GIMP_DIALOG (dlg));
gtk_widget_destroy (dlg);
}
......@@ -2224,7 +2224,7 @@ force_overwrite (const gchar *filename,
gtk_widget_show (dlg);
overwrite = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
overwrite = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -385,7 +385,7 @@ type_dialog (gint selected)
gtk_widget_show (dlg);
if (gtk_dialog_run (GTK_DIALOG (dlg)) != GTK_RESPONSE_OK)
if (gimp_dialog_run (GIMP_DIALOG (dlg)) != GTK_RESPONSE_OK)
selected_type = -1;
gtk_widget_destroy (dlg);
......
......@@ -505,7 +505,7 @@ align_layers_dialog (void)
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -438,7 +438,7 @@ lens_dialog (GimpDrawable *drawable)
gtk_widget_show (hbox);
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -357,7 +357,7 @@ blinds_dialog (void)
dialog_update_preview ();
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -626,7 +626,7 @@ blur_dialog (void)
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -427,7 +427,7 @@ borderaverage_dialog (void)
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -1109,7 +1109,7 @@ bumpmap_dialog (void)
gtk_widget_show (dialog);
run = (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dialog)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dialog);
......
......@@ -608,7 +608,7 @@ doDialog (void)
/* show stuff */
gtk_widget_show_all (dialog);
gtk_dialog_run (GTK_DIALOG (dialog));
gimp_dialog_run (GIMP_DIALOG (dialog));
gtk_widget_destroy (dialog);
}
......
......@@ -363,7 +363,7 @@ do_checkerboard_dialog (gint32 image_ID,
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -306,7 +306,7 @@ colorify_dialog (GimpRGB *color)
gtk_widget_show (dialog);
run = (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dialog)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dialog);
......
......@@ -350,7 +350,7 @@ colortoalpha_dialog (GimpDrawable *drawable)
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -1191,7 +1191,7 @@ compose_dialog (const gchar *compose_type,
gtk_widget_show (right_frame);
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -748,7 +748,7 @@ run_save_dialog (Config *config)
gtk_widget_show (dialog);
run = (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dialog)) == GTK_RESPONSE_OK);
if (run)
{
......
......@@ -294,7 +294,7 @@ cubism_dialog (void)
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -1226,7 +1226,7 @@ decompose_dialog (void)
gtk_widget_show (frame);
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -313,7 +313,7 @@ deinterlace_dialog (void)
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -799,7 +799,7 @@ DepthMerge_dialog (DepthMerge *dm)
gtk_widget_show (dm->interface->dialog);
DepthMerge_updatePreview (dm);
run = (gtk_dialog_run (GTK_DIALOG (dm->interface->dialog)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dm->interface->dialog)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dm->interface->dialog);
dm->interface->dialog = NULL;
......
......@@ -768,7 +768,7 @@ despeckle_dialog (void)
preview_update ();
run = (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dialog)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dialog);
......
......@@ -665,7 +665,7 @@ destripe_dialog (void)
preview_update ();
run = (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dialog)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dialog);
......
......@@ -650,7 +650,7 @@ diffraction_dialog (void)
gtk_widget_show (dialog);
dialog_update_preview ();
run = (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dialog)) == GTK_RESPONSE_OK);
gtk_widget_show (dialog);
......
......@@ -417,7 +417,7 @@ displace_dialog (GimpDrawable *drawable)
gtk_widget_show (frame);
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -726,7 +726,7 @@ edge_dialog (GimpDrawable *drawable)
gtk_widget_show (frame);
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -555,7 +555,7 @@ pluginCoreIA (piArgs *argp)
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -233,7 +233,7 @@ engrave_dialog (void)
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -559,7 +559,7 @@ exchange_dialog (void)
gtk_widget_show (mainbox);
gtk_widget_show (dialog);
run = (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dialog)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dialog);
......
......@@ -1506,7 +1506,7 @@ film_dialog (gint32 image_ID)
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
if (run)
{
......
......@@ -321,7 +321,7 @@ flare_dialog (GimpDrawable *drawable)
gtk_widget_show (frame);
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -852,7 +852,7 @@ dialog_show (void)
gtk_widget_show (dialog);
dialog_preview_draw ();
run = (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dialog)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dialog);
......
......@@ -387,7 +387,7 @@ gauss_iir_dialog (void)
gtk_widget_show (hbox);
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......@@ -450,7 +450,7 @@ gauss_iir2_dialog (gint32 image_ID,
gtk_widget_show (frame);
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
if (run)
{
......
......@@ -381,7 +381,7 @@ gauss_rle_dialog (void)
gtk_widget_show (hbox);
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......@@ -444,7 +444,7 @@ gauss_rle2_dialog (gint32 image_ID,
gtk_widget_show (frame);
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
if (run)
{
......
......@@ -651,7 +651,7 @@ save_dialog (void)
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -454,7 +454,7 @@ save_dialog (void)
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -1228,7 +1228,7 @@ badbounds_dialog (void)
gtk_widget_show (dlg);
crop = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
crop = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......@@ -1437,7 +1437,7 @@ save_dialog (gint32 image_ID)
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -1072,7 +1072,7 @@ gih_save_dialog (gint32 image_ID)
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
if (run)
{
......
......@@ -278,7 +278,7 @@ glass_dialog (GimpDrawable *drawable)
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -882,7 +882,7 @@ dialog_create (void)
dialog_update_previews (NULL, NULL);
gtk_widget_show (dialog);
run = (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dialog)) == GTK_RESPONSE_OK);
if (run)
qbist_info.info = info[0];
......
......@@ -893,6 +893,7 @@ dialog (gint32 image_ID,
COLOR_BUTTON_WIDTH, 16,
&grid_cfg.hcolor,
GIMP_COLOR_AREA_SMALL_CHECKS);
gimp_color_button_set_update (GIMP_COLOR_BUTTON (hcolor_button), TRUE);
gtk_container_add (GTK_CONTAINER (align), hcolor_button);
gtk_widget_show (hcolor_button);
......@@ -911,6 +912,7 @@ dialog (gint32 image_ID,
COLOR_BUTTON_WIDTH, 16,
&grid_cfg.vcolor,
GIMP_COLOR_AREA_SMALL_CHECKS);
gimp_color_button_set_update (GIMP_COLOR_BUTTON (vcolor_button), TRUE);
gtk_container_add (GTK_CONTAINER (align), vcolor_button);
gtk_widget_show (vcolor_button);
......@@ -929,6 +931,7 @@ dialog (gint32 image_ID,
COLOR_BUTTON_WIDTH, 16,
&grid_cfg.icolor,
GIMP_COLOR_AREA_SMALL_CHECKS);
gimp_color_button_set_update (GIMP_COLOR_BUTTON (button), TRUE);
gtk_container_add (GTK_CONTAINER (align), button);
gtk_widget_show (button);
......@@ -955,7 +958,7 @@ dialog (gint32 image_ID,
g_object_set_data (G_OBJECT (dlg), "offset", offset);
g_object_set_data (G_OBJECT (dlg), "drawable", drawable);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
if (run)
update_values ();
......@@ -964,4 +967,3 @@ dialog (gint32 image_ID,
return run;
}
......@@ -642,7 +642,7 @@ save_dialog (gint32 image_ID)
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -626,7 +626,7 @@ pluginCoreIA (piArgs *argp)
gtk_widget_show (dlg);
run = (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
......
......@@ -455,7 +455,7 @@ dialog (GimpDrawable *mangle)
gtk_widget_show (dlg);