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> 2005-09-09 Michael Natterer <mitch@gimp.org>
Added parent window API to the GimpProgress interface and to Added parent window API to the GimpProgress interface and to
......
...@@ -360,6 +360,8 @@ aa_dialog (gint selected) ...@@ -360,6 +360,8 @@ aa_dialog (gint selected)
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
gimp_window_set_transient (GTK_WINDOW (dialog));
hbox = gtk_hbox_new (FALSE, 6); hbox = gtk_hbox_new (FALSE, 6);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 12); gtk_container_set_border_width (GTK_CONTAINER (hbox), 12);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox),
......
...@@ -648,6 +648,8 @@ run_save_dialog (Config *config) ...@@ -648,6 +648,8 @@ run_save_dialog (Config *config)
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
gimp_window_set_transient (GTK_WINDOW (dialog));
vbox = gtk_vbox_new (FALSE, 12); vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 12); gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), vbox); gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), vbox);
......
...@@ -671,33 +671,35 @@ save_image (const gchar *filename, ...@@ -671,33 +671,35 @@ save_image (const gchar *filename,
static gboolean static gboolean
save_dialog (void) save_dialog (void)
{ {
GtkWidget *dlg; GtkWidget *dialog;
GtkWidget *table; GtkWidget *table;
GtkWidget *entry; GtkWidget *entry;
GtkWidget *spinbutton; GtkWidget *spinbutton;
GtkObject *adj; GtkObject *adj;
gboolean run; gboolean run;
dlg = gimp_dialog_new (_("Save as Brush"), PLUG_IN_BINARY, dialog = gimp_dialog_new (_("Save as Brush"), PLUG_IN_BINARY,
NULL, 0, NULL, 0,
gimp_standard_help_func, SAVE_PROC, gimp_standard_help_func, SAVE_PROC,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_SAVE, GTK_RESPONSE_OK, GTK_STOCK_SAVE, GTK_RESPONSE_OK,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dlg), gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
gimp_window_set_transient (GTK_WINDOW (dialog));
/* The main table */ /* The main table */
table = gtk_table_new (2, 2, FALSE); table = gtk_table_new (2, 2, FALSE);
gtk_container_set_border_width (GTK_CONTAINER (table), 12); gtk_container_set_border_width (GTK_CONTAINER (table), 12);
gtk_table_set_row_spacings (GTK_TABLE (table), 6); gtk_table_set_row_spacings (GTK_TABLE (table), 6);
gtk_table_set_col_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); gtk_widget_show (table);
spinbutton = gimp_spin_button_new (&adj, spinbutton = gimp_spin_button_new (&adj,
...@@ -721,11 +723,11 @@ save_dialog (void) ...@@ -721,11 +723,11 @@ save_dialog (void)
G_CALLBACK (entry_callback), G_CALLBACK (entry_callback),
info.description); 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; return run;
} }
......
...@@ -847,7 +847,7 @@ dim_callback (GtkAdjustment *adjustment, ...@@ -847,7 +847,7 @@ dim_callback (GtkAdjustment *adjustment,
static gboolean static gboolean
gih_save_dialog (gint32 image_ID) gih_save_dialog (gint32 image_ID)
{ {
GtkWidget *dlg; GtkWidget *dialog;
GtkWidget *table; GtkWidget *table;
GtkWidget *dimtable; GtkWidget *dimtable;
GtkWidget *label; GtkWidget *label;
...@@ -864,26 +864,28 @@ gih_save_dialog (gint32 image_ID) ...@@ -864,26 +864,28 @@ gih_save_dialog (gint32 image_ID)
gint32 nlayers; gint32 nlayers;
gboolean run; 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, NULL, 0,
gimp_standard_help_func, SAVE_PROC, gimp_standard_help_func, SAVE_PROC,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_SAVE, GTK_RESPONSE_OK, GTK_STOCK_SAVE, GTK_RESPONSE_OK,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dlg), gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
gimp_window_set_transient (GTK_WINDOW (dialog));
/* The main table */ /* The main table */
table = gtk_table_new (8, 2, FALSE); table = gtk_table_new (8, 2, FALSE);
gtk_table_set_row_spacings (GTK_TABLE (table), 6); gtk_table_set_row_spacings (GTK_TABLE (table), 6);
gtk_table_set_col_spacings (GTK_TABLE (table), 6); gtk_table_set_col_spacings (GTK_TABLE (table), 6);
gtk_container_set_border_width (GTK_CONTAINER (table), 12); 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); gtk_widget_show (table);
/* /*
...@@ -1076,7 +1078,6 @@ gih_save_dialog (gint32 image_ID) ...@@ -1076,7 +1078,6 @@ gih_save_dialog (gint32 image_ID)
else else
cellw_adjust.rank0 = cellh_adjust.rank0 = NULL; cellw_adjust.rank0 = cellh_adjust.rank0 = NULL;
} }
cb = gtk_combo_box_new_text (); cb = gtk_combo_box_new_text ();
...@@ -1092,7 +1093,6 @@ gih_save_dialog (gint32 image_ID) ...@@ -1092,7 +1093,6 @@ gih_save_dialog (gint32 image_ID)
gtk_combo_box_set_active (GTK_COMBO_BOX (cb), j); gtk_combo_box_set_active (GTK_COMBO_BOX (cb), j);
break; break;
} }
gtk_table_attach (GTK_TABLE (dimtable), cb, 1, 2, i, i + 1, gtk_table_attach (GTK_TABLE (dimtable), cb, 1, 2, i, i + 1,
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
...@@ -1115,9 +1115,9 @@ gih_save_dialog (gint32 image_ID) ...@@ -1115,9 +1115,9 @@ gih_save_dialog (gint32 image_ID)
_("Ranks:"), 0.0, 0.0, _("Ranks:"), 0.0, 0.0,
dimtable, 1, FALSE); 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) if (run)
{ {
...@@ -1132,7 +1132,7 @@ gih_save_dialog (gint32 image_ID) ...@@ -1132,7 +1132,7 @@ gih_save_dialog (gint32 image_ID)
num_useable_layers * gihparams.rows * gihparams.cols); num_useable_layers * gihparams.rows * gihparams.cols);
} }
gtk_widget_destroy (dlg); gtk_widget_destroy (dialog);
for (i = 0; i < cellw_adjust.nguides; i++) for (i = 0; i < cellw_adjust.nguides; i++)
gimp_image_delete_guide (image_ID, cellw_adjust.guides[i]); gimp_image_delete_guide (image_ID, cellw_adjust.guides[i]);
......
...@@ -382,7 +382,7 @@ save_image (const gchar *filename, ...@@ -382,7 +382,7 @@ save_image (const gchar *filename,
static gint static gint
save_dialog (gint32 image_ID) save_dialog (gint32 image_ID)
{ {
GtkWidget *dlg; GtkWidget *dialog;
GtkWidget *main_vbox; GtkWidget *main_vbox;
GtkWidget *frame; GtkWidget *frame;
GtkWidget *vbox; GtkWidget *vbox;
...@@ -395,23 +395,25 @@ save_dialog (gint32 image_ID) ...@@ -395,23 +395,25 @@ save_dialog (gint32 image_ID)
gimp_ui_init (PLUG_IN_BINARY, FALSE); 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, NULL, 0,
gimp_standard_help_func, SAVE_PROC, gimp_standard_help_func, SAVE_PROC,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_SAVE, GTK_RESPONSE_OK, GTK_STOCK_SAVE, GTK_RESPONSE_OK,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dlg), gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
gimp_window_set_transient (GTK_WINDOW (dialog));
main_vbox = gtk_vbox_new (FALSE, 12); main_vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 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); TRUE, TRUE, 0);
if (gimp_image_width (image_ID) * gimp_image_height (image_ID) > 4096) if (gimp_image_width (image_ID) * gimp_image_height (image_ID) > 4096)
...@@ -636,11 +638,11 @@ save_dialog (gint32 image_ID) ...@@ -636,11 +638,11 @@ save_dialog (gint32 image_ID)
gtk_widget_show (table); gtk_widget_show (table);
gtk_widget_show (frame); 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; return run;
} }
......
...@@ -1302,7 +1302,7 @@ mng_save_image (const gchar *filename, ...@@ -1302,7 +1302,7 @@ mng_save_image (const gchar *filename,
static gint static gint
mng_save_dialog (gint32 image_id) mng_save_dialog (gint32 image_id)
{ {
GtkWidget *dlg; GtkWidget *dialog;
GtkWidget *main_vbox; GtkWidget *main_vbox;
GtkWidget *frame; GtkWidget *frame;
GtkWidget *vbox; GtkWidget *vbox;
...@@ -1319,23 +1319,25 @@ mng_save_dialog (gint32 image_id) ...@@ -1319,23 +1319,25 @@ mng_save_dialog (gint32 image_id)
gboolean run; gboolean run;
dlg = gimp_dialog_new (_("Save as MNG"), PLUG_IN_BINARY, dialog = gimp_dialog_new (_("Save as MNG"), PLUG_IN_BINARY,
NULL, 0, NULL, 0,
gimp_standard_help_func, SAVE_PROC, gimp_standard_help_func, SAVE_PROC,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_SAVE, GTK_RESPONSE_OK, GTK_STOCK_SAVE, GTK_RESPONSE_OK,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dlg), gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
gimp_window_set_transient (GTK_WINDOW (dialog));
main_vbox = gtk_vbox_new (FALSE, 12); main_vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 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")); frame = gimp_frame_new (_("MNG Options"));
gtk_box_pack_start (GTK_BOX (main_vbox), frame, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (main_vbox), frame, TRUE, TRUE, 0);
...@@ -1549,11 +1551,11 @@ mng_save_dialog (gint32 image_id) ...@@ -1549,11 +1551,11 @@ mng_save_dialog (gint32 image_id)
gtk_widget_set_sensitive (frame, num_layers > 1); gtk_widget_set_sensitive (frame, num_layers > 1);
gtk_widget_show (main_vbox); 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; return run;
} }
......
...@@ -511,30 +511,32 @@ save_image (const gchar *filename, ...@@ -511,30 +511,32 @@ save_image (const gchar *filename,
static gboolean static gboolean
save_dialog (void) save_dialog (void)
{ {
GtkWidget *dlg; GtkWidget *dialog;
GtkWidget *table; GtkWidget *table;
GtkWidget *entry; GtkWidget *entry;
gboolean run; gboolean run;
dlg = gimp_dialog_new (_("Save as Pattern"), PLUG_IN_BINARY, dialog = gimp_dialog_new (_("Save as Pattern"), PLUG_IN_BINARY,
NULL, 0, NULL, 0,
gimp_standard_help_func, SAVE_PROC, gimp_standard_help_func, SAVE_PROC,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_SAVE, GTK_RESPONSE_OK, GTK_STOCK_SAVE, GTK_RESPONSE_OK,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dlg), gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
gimp_window_set_transient (GTK_WINDOW (dialog));
/* The main table */ /* The main table */
table = gtk_table_new (1, 2, FALSE); table = gtk_table_new (1, 2, FALSE);
gtk_table_set_col_spacings (GTK_TABLE (table), 6); gtk_table_set_col_spacings (GTK_TABLE (table), 6);
gtk_container_set_border_width (GTK_CONTAINER (table), 12); 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); gtk_widget_show (table);
entry = gtk_entry_new (); entry = gtk_entry_new ();
...@@ -549,11 +551,11 @@ save_dialog (void) ...@@ -549,11 +551,11 @@ save_dialog (void)
G_CALLBACK (entry_callback), G_CALLBACK (entry_callback),
description); 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; return run;
} }
......
...@@ -1634,34 +1634,36 @@ save_dialog (gint32 image_ID, ...@@ -1634,34 +1634,36 @@ save_dialog (gint32 image_ID,
gboolean alpha) gboolean alpha)
{ {
PngSaveGui pg; PngSaveGui pg;
GtkWidget *dlg; GtkWidget *dialog;
GtkWidget *table; GtkWidget *table;
GtkWidget *toggle; GtkWidget *toggle;
GtkObject *scale; GtkObject *scale;
GimpParasite *parasite; GimpParasite *parasite;
dlg = gimp_dialog_new (_("Save as PNG"), PLUG_IN_BINARY, dialog = gimp_dialog_new (_("Save as PNG"), PLUG_IN_BINARY,
NULL, 0, NULL, 0,
gimp_standard_help_func, SAVE_PROC, gimp_standard_help_func, SAVE_PROC,
_("_Load defaults"), RESPONSE_LOAD_DEFAULTS, _("_Load defaults"), RESPONSE_LOAD_DEFAULTS,
_("_Save defaults"), RESPONSE_SAVE_DEFAULTS, _("_Save defaults"), RESPONSE_SAVE_DEFAULTS,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_SAVE, GTK_RESPONSE_OK, GTK_STOCK_SAVE, GTK_RESPONSE_OK,
NULL); NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dlg), gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
RESPONSE_LOAD_DEFAULTS, RESPONSE_LOAD_DEFAULTS,
RESPONSE_SAVE_DEFAULTS, RESPONSE_SAVE_DEFAULTS,
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
g_signal_connect (dlg, "response", gimp_window_set_transient (GTK_WINDOW (dialog));
g_signal_connect (dialog, "response",
G_CALLBACK (save_dialog_response), G_CALLBACK (save_dialog_response),
&pg); &pg);
g_signal_connect (dlg, "destroy", g_signal_connect (dialog, "destroy",
G_CALLBACK (gtk_main_quit), G_CALLBACK (gtk_main_quit),
NULL); NULL);
...@@ -1669,7 +1671,7 @@ save_dialog (gint32 image_ID, ...@@ -1669,7 +1671,7 @@ save_dialog (gint32 image_ID,
gtk_table_set_col_spacings (GTK_TABLE (table), 6); gtk_table_set_col_spacings (GTK_TABLE (table), 6);
gtk_table_set_row_spacings (GTK_TABLE (table), 6); gtk_table_set_row_spacings (GTK_TABLE (table), 6);
gtk_container_set_border_width (GTK_CONTAINER (table), 12); 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); gtk_widget_show (table);
pg.interlaced = toggle = pg.interlaced = toggle =
...@@ -1766,7 +1768,7 @@ save_dialog (gint32 image_ID, ...@@ -1766,7 +1768,7 @@ save_dialog (gint32 image_ID,
G_CALLBACK (gimp_int_adjustment_update), G_CALLBACK (gimp_int_adjustment_update),
&pngvals.compression_level); &pngvals.compression_level);
gtk_widget_show (dlg); gtk_widget_show (dialog);
pg.run = FALSE; pg.run = FALSE;
......
...@@ -952,24 +952,26 @@ save_image (const gchar *filename, ...@@ -952,24 +952,26 @@ save_image (const gchar *filename,
static gint static gint
save_dialog (void) save_dialog (void)
{ {
GtkWidget *dlg; GtkWidget *dialog;
GtkWidget *frame; GtkWidget *frame;
gboolean run; gboolean run;
dlg = gimp_dialog_new (_("Save as PNM"), PLUG_IN_BINARY, dialog = gimp_dialog_new (_("Save as PNM"), PLUG_IN_BINARY,
NULL, 0, NULL, 0,
gimp_standard_help_func, PNM_SAVE_PROC, gimp_standard_help_func, PNM_SAVE_PROC,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,