Commit 3291ed35 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

plug-ins/common/aa.c plug-ins/common/csource.c plug-ins/common/gbr.c

2005-09-09  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/aa.c
	* plug-ins/common/csource.c
	* plug-ins/common/gbr.c
	* plug-ins/common/gih.c
	* plug-ins/common/gtm.c
	* plug-ins/common/mng.c
	* plug-ins/common/pat.c
	* plug-ins/common/png.c
	* plug-ins/common/pnm.c
	* plug-ins/common/postscript.c
	* plug-ins/common/psp.c
	* plug-ins/common/raw.c
	* plug-ins/common/sunras.c
	* plug-ins/common/tga.c
	* plug-ins/common/tiff.c
	* plug-ins/common/xbm.c
	* plug-ins/common/xpm.c
	* plug-ins/gfli/gfli.c
	* plug-ins/jpeg/jpeg-save.c
	* plug-ins/sgi/sgi.c
	* plug-ins/winicon/icodialog.c: actually call
	gimp_window_set_transient() on save dialogs.
	Really fixes bug #62988.
parent b10adabb
2005-09-09 Michael Natterer <mitch@gimp.org>
* plug-ins/common/aa.c
* plug-ins/common/csource.c
* plug-ins/common/gbr.c
* plug-ins/common/gih.c
* plug-ins/common/gtm.c
* plug-ins/common/mng.c
* plug-ins/common/pat.c
* plug-ins/common/png.c
* plug-ins/common/pnm.c
* plug-ins/common/postscript.c
* plug-ins/common/psp.c
* plug-ins/common/raw.c
* plug-ins/common/sunras.c
* plug-ins/common/tga.c
* plug-ins/common/tiff.c
* plug-ins/common/xbm.c
* plug-ins/common/xpm.c
* plug-ins/gfli/gfli.c
* plug-ins/jpeg/jpeg-save.c
* plug-ins/sgi/sgi.c
* plug-ins/winicon/icodialog.c: actually call
gimp_window_set_transient() on save dialogs.
Really fixes bug #62988.
2005-09-09 Michael Natterer <mitch@gimp.org>
Added parent window API to the GimpProgress interface and to
......
......@@ -360,6 +360,8 @@ aa_dialog (gint selected)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient (GTK_WINDOW (dialog));
hbox = gtk_hbox_new (FALSE, 6);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 12);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox),
......
......@@ -648,6 +648,8 @@ run_save_dialog (Config *config)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient (GTK_WINDOW (dialog));
vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), vbox);
......
......@@ -671,14 +671,14 @@ save_image (const gchar *filename,
static gboolean
save_dialog (void)
{
GtkWidget *dlg;
GtkWidget *dialog;
GtkWidget *table;
GtkWidget *entry;
GtkWidget *spinbutton;
GtkObject *adj;
gboolean run;
dlg = gimp_dialog_new (_("Save as Brush"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Save as Brush"), PLUG_IN_BINARY,
NULL, 0,
gimp_standard_help_func, SAVE_PROC,
......@@ -687,17 +687,19 @@ save_dialog (void)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dlg),
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient (GTK_WINDOW (dialog));
/* The main table */
table = gtk_table_new (2, 2, FALSE);
gtk_container_set_border_width (GTK_CONTAINER (table), 12);
gtk_table_set_row_spacings (GTK_TABLE (table), 6);
gtk_table_set_col_spacings (GTK_TABLE (table), 6);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), table, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), table, TRUE, TRUE, 0);
gtk_widget_show (table);
spinbutton = gimp_spin_button_new (&adj,
......@@ -721,11 +723,11 @@ save_dialog (void)
G_CALLBACK (entry_callback),
info.description);
gtk_widget_show (dlg);
gtk_widget_show (dialog);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dialog)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
gtk_widget_destroy (dialog);
return run;
}
......
......@@ -847,7 +847,7 @@ dim_callback (GtkAdjustment *adjustment,
static gboolean
gih_save_dialog (gint32 image_ID)
{
GtkWidget *dlg;
GtkWidget *dialog;
GtkWidget *table;
GtkWidget *dimtable;
GtkWidget *label;
......@@ -864,7 +864,7 @@ gih_save_dialog (gint32 image_ID)
gint32 nlayers;
gboolean run;
dlg = gimp_dialog_new (_("Save as Brush Pipe"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Save as Brush Pipe"), PLUG_IN_BINARY,
NULL, 0,
gimp_standard_help_func, SAVE_PROC,
......@@ -873,17 +873,19 @@ gih_save_dialog (gint32 image_ID)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dlg),
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient (GTK_WINDOW (dialog));
/* The main table */
table = gtk_table_new (8, 2, FALSE);
gtk_table_set_row_spacings (GTK_TABLE (table), 6);
gtk_table_set_col_spacings (GTK_TABLE (table), 6);
gtk_container_set_border_width (GTK_CONTAINER (table), 12);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), table, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), table, TRUE, TRUE, 0);
gtk_widget_show (table);
/*
......@@ -1077,7 +1079,6 @@ gih_save_dialog (gint32 image_ID)
cellw_adjust.rank0 = cellh_adjust.rank0 = NULL;
}
cb = gtk_combo_box_new_text ();
for (j = 0; j < G_N_ELEMENTS (selection_modes); j++)
......@@ -1093,7 +1094,6 @@ gih_save_dialog (gint32 image_ID)
break;
}
gtk_table_attach (GTK_TABLE (dimtable), cb, 1, 2, i, i + 1,
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
......@@ -1115,9 +1115,9 @@ gih_save_dialog (gint32 image_ID)
_("Ranks:"), 0.0, 0.0,
dimtable, 1, FALSE);
gtk_widget_show (dlg);
gtk_widget_show (dialog);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dialog)) == GTK_RESPONSE_OK);
if (run)
{
......@@ -1132,7 +1132,7 @@ gih_save_dialog (gint32 image_ID)
num_useable_layers * gihparams.rows * gihparams.cols);
}
gtk_widget_destroy (dlg);
gtk_widget_destroy (dialog);
for (i = 0; i < cellw_adjust.nguides; i++)
gimp_image_delete_guide (image_ID, cellw_adjust.guides[i]);
......
......@@ -382,7 +382,7 @@ save_image (const gchar *filename,
static gint
save_dialog (gint32 image_ID)
{
GtkWidget *dlg;
GtkWidget *dialog;
GtkWidget *main_vbox;
GtkWidget *frame;
GtkWidget *vbox;
......@@ -395,7 +395,7 @@ save_dialog (gint32 image_ID)
gimp_ui_init (PLUG_IN_BINARY, FALSE);
dlg = gimp_dialog_new (_("Save as HTML table"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Save as HTML table"), PLUG_IN_BINARY,
NULL, 0,
gimp_standard_help_func, SAVE_PROC,
......@@ -404,14 +404,16 @@ save_dialog (gint32 image_ID)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dlg),
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient (GTK_WINDOW (dialog));
main_vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 12);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), main_vbox,
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), main_vbox,
TRUE, TRUE, 0);
if (gimp_image_width (image_ID) * gimp_image_height (image_ID) > 4096)
......@@ -636,11 +638,11 @@ save_dialog (gint32 image_ID)
gtk_widget_show (table);
gtk_widget_show (frame);
gtk_widget_show (dlg);
gtk_widget_show (dialog);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dialog)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
gtk_widget_destroy (dialog);
return run;
}
......
......@@ -1302,7 +1302,7 @@ mng_save_image (const gchar *filename,
static gint
mng_save_dialog (gint32 image_id)
{
GtkWidget *dlg;
GtkWidget *dialog;
GtkWidget *main_vbox;
GtkWidget *frame;
GtkWidget *vbox;
......@@ -1319,7 +1319,7 @@ mng_save_dialog (gint32 image_id)
gboolean run;
dlg = gimp_dialog_new (_("Save as MNG"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Save as MNG"), PLUG_IN_BINARY,
NULL, 0,
gimp_standard_help_func, SAVE_PROC,
......@@ -1328,14 +1328,16 @@ mng_save_dialog (gint32 image_id)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dlg),
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient (GTK_WINDOW (dialog));
main_vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 12);
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dlg)->vbox), main_vbox);
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), main_vbox);
frame = gimp_frame_new (_("MNG Options"));
gtk_box_pack_start (GTK_BOX (main_vbox), frame, TRUE, TRUE, 0);
......@@ -1549,11 +1551,11 @@ mng_save_dialog (gint32 image_id)
gtk_widget_set_sensitive (frame, num_layers > 1);
gtk_widget_show (main_vbox);
gtk_widget_show (dlg);
gtk_widget_show (dialog);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dialog)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
gtk_widget_destroy (dialog);
return run;
}
......
......@@ -511,12 +511,12 @@ save_image (const gchar *filename,
static gboolean
save_dialog (void)
{
GtkWidget *dlg;
GtkWidget *dialog;
GtkWidget *table;
GtkWidget *entry;
gboolean run;
dlg = gimp_dialog_new (_("Save as Pattern"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Save as Pattern"), PLUG_IN_BINARY,
NULL, 0,
gimp_standard_help_func, SAVE_PROC,
......@@ -525,16 +525,18 @@ save_dialog (void)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dlg),
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient (GTK_WINDOW (dialog));
/* The main table */
table = gtk_table_new (1, 2, FALSE);
gtk_table_set_col_spacings (GTK_TABLE (table), 6);
gtk_container_set_border_width (GTK_CONTAINER (table), 12);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), table, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), table, TRUE, TRUE, 0);
gtk_widget_show (table);
entry = gtk_entry_new ();
......@@ -549,11 +551,11 @@ save_dialog (void)
G_CALLBACK (entry_callback),
description);
gtk_widget_show (dlg);
gtk_widget_show (dialog);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dialog)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
gtk_widget_destroy (dialog);
return run;
}
......
......@@ -1634,13 +1634,13 @@ save_dialog (gint32 image_ID,
gboolean alpha)
{
PngSaveGui pg;
GtkWidget *dlg;
GtkWidget *dialog;
GtkWidget *table;
GtkWidget *toggle;
GtkObject *scale;
GimpParasite *parasite;
dlg = gimp_dialog_new (_("Save as PNG"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Save as PNG"), PLUG_IN_BINARY,
NULL, 0,
gimp_standard_help_func, SAVE_PROC,
......@@ -1651,17 +1651,19 @@ save_dialog (gint32 image_ID,
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dlg),
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
RESPONSE_LOAD_DEFAULTS,
RESPONSE_SAVE_DEFAULTS,
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
g_signal_connect (dlg, "response",
gimp_window_set_transient (GTK_WINDOW (dialog));
g_signal_connect (dialog, "response",
G_CALLBACK (save_dialog_response),
&pg);
g_signal_connect (dlg, "destroy",
g_signal_connect (dialog, "destroy",
G_CALLBACK (gtk_main_quit),
NULL);
......@@ -1669,7 +1671,7 @@ save_dialog (gint32 image_ID,
gtk_table_set_col_spacings (GTK_TABLE (table), 6);
gtk_table_set_row_spacings (GTK_TABLE (table), 6);
gtk_container_set_border_width (GTK_CONTAINER (table), 12);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), table, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), table, TRUE, TRUE, 0);
gtk_widget_show (table);
pg.interlaced = toggle =
......@@ -1766,7 +1768,7 @@ save_dialog (gint32 image_ID,
G_CALLBACK (gimp_int_adjustment_update),
&pngvals.compression_level);
gtk_widget_show (dlg);
gtk_widget_show (dialog);
pg.run = FALSE;
......
......@@ -952,11 +952,11 @@ save_image (const gchar *filename,
static gint
save_dialog (void)
{
GtkWidget *dlg;
GtkWidget *dialog;
GtkWidget *frame;
gboolean run;
dlg = gimp_dialog_new (_("Save as PNM"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Save as PNM"), PLUG_IN_BINARY,
NULL, 0,
gimp_standard_help_func, PNM_SAVE_PROC,
......@@ -965,11 +965,13 @@ save_dialog (void)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dlg),
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient (GTK_WINDOW (dialog));
/* file save type */
frame = gimp_int_radio_group_new (TRUE, _("Data formatting"),
G_CALLBACK (gimp_radio_button_update),
......@@ -980,15 +982,15 @@ save_dialog (void)
NULL);
gtk_container_set_border_width (GTK_CONTAINER (frame), 6);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), frame, FALSE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox),
frame, FALSE, TRUE, 0);
gtk_widget_show (frame);
gtk_widget_show (dlg);
gtk_widget_show (dialog);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dialog)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
gtk_widget_destroy (dialog);
return run;
}
......
......@@ -3261,6 +3261,8 @@ save_dialog (void)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient (GTK_WINDOW (dialog));
/* Main hbox */
hbox = gtk_hbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 12);
......
......@@ -393,11 +393,11 @@ query (void)
static gboolean
save_dialog (void)
{
GtkWidget *dlg;
GtkWidget *dialog;
GtkWidget *frame;
gint run;
dlg = gimp_dialog_new (_("Save as PSP"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Save as PSP"), PLUG_IN_BINARY,
NULL, 0,
gimp_standard_help_func, SAVE_PROC,
......@@ -406,11 +406,13 @@ save_dialog (void)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dlg),
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient (GTK_WINDOW (dialog));
/* file save type */
frame = gimp_int_radio_group_new (TRUE, _("Data Compression"),
G_CALLBACK (gimp_radio_button_update),
......@@ -423,14 +425,15 @@ save_dialog (void)
NULL);
gtk_container_set_border_width (GTK_CONTAINER (frame), 12);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), frame, FALSE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox),
frame, FALSE, TRUE, 0);
gtk_widget_show (frame);
gtk_widget_show (dlg);
gtk_widget_show (dialog);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dialog)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
gtk_widget_destroy (dialog);
return run;
}
......
......@@ -1107,6 +1107,8 @@ save_dialog (gchar * filename,
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient (GTK_WINDOW (dialog));
main_vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 12);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), main_vbox,
......
......@@ -1566,11 +1566,11 @@ save_rgb (FILE *ofp,
static gboolean
save_dialog (void)
{
GtkWidget *dlg;
GtkWidget *dialog;
GtkWidget *frame;
gboolean run;
dlg = gimp_dialog_new (_("Save as SUNRAS"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Save as SUNRAS"), PLUG_IN_BINARY,
NULL, 0,
gimp_standard_help_func, SAVE_PROC,
......@@ -1579,11 +1579,13 @@ save_dialog (void)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dlg),
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient (GTK_WINDOW (dialog));
/* file save type */
frame = gimp_int_radio_group_new (TRUE, _("Data Formatting"),
G_CALLBACK (gimp_radio_button_update),
......@@ -1595,14 +1597,15 @@ save_dialog (void)
NULL);
gtk_container_set_border_width (GTK_CONTAINER (frame), 12);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), frame, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox),
frame, TRUE, TRUE, 0);
gtk_widget_show (frame);
gtk_widget_show (dlg);
gtk_widget_show (dialog);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dialog)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
gtk_widget_destroy (dialog);
return run;
}
......
......@@ -1181,13 +1181,13 @@ save_image (const gchar *filename,
static gboolean
save_dialog (void)
{
GtkWidget *dlg;
GtkWidget *dialog;
GtkWidget *toggle;
GtkWidget *origin;
GtkWidget *vbox;
gboolean run;
dlg = gimp_dialog_new (_("Save as TGA"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Save as TGA"), PLUG_IN_BINARY,
NULL, 0,
gimp_standard_help_func, SAVE_PROC,
......@@ -1196,14 +1196,17 @@ save_dialog (void)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dlg),
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient (GTK_WINDOW (dialog));
vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), vbox, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox),
vbox, TRUE, TRUE, 0);
gtk_widget_show (vbox);
/* rle */
......@@ -1226,11 +1229,11 @@ save_dialog (void)
G_CALLBACK (gimp_toggle_button_update),
&tsvals.origin);
gtk_widget_show (dlg);
gtk_widget_show (dialog);
run = (gimp_dialog_run (GIMP_DIALOG (dlg)) == GTK_RESPONSE_OK);
run = (gimp_dialog_run (GIMP_DIALOG (dialog)) == GTK_RESPONSE_OK);
gtk_widget_destroy (dlg);
gtk_widget_destroy (dialog);
return run;
}
......@@ -2238,7 +2238,7 @@ save_image (const gchar *filename,
static gboolean
save_dialog (gboolean alpha)
{
GtkWidget *dlg;
GtkWidget *dialog;
GtkWidget *vbox;
GtkWidget *frame;
GtkWidget *hbox;
......@@ -2247,7 +2247,7 @@ save_dialog (gboolean alpha)
GtkWidget *toggle;
gboolean run;
dlg = gimp_dialog_new (_("Save as TIFF"), PLUG_IN_BINARY,
dialog = gimp_dialog_new (_("Save as TIFF"), PLUG_IN_BINARY,