Commit cc6f3e76 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

Call gimp_window_set_transient_for_default_display() for most plug-in

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

	* plug-ins: Call gimp_window_set_transient_for_default_display()
	for most plug-in dialogs. Not yet done are load and save dialogs
	and dialogs created from language bindings.
parent 293ebe5a
2005-09-05 Sven Neumann <sven@gimp.org>
* plug-ins: Call gimp_window_set_transient_for_default_display()
for most plug-in dialogs. Not yet done are load and save dialogs
and dialogs created from language bindings.
2005-09-05 Sven Neumann <sven@gimp.org>
Address bug #307971:
......
......@@ -551,6 +551,13 @@ explorer_dialog (void)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (GTK_WINDOW (dialog));
g_signal_connect (dialog, "response",
G_CALLBACK (dialog_response),
NULL);
......@@ -559,11 +566,6 @@ explorer_dialog (void)
G_CALLBACK (gtk_main_quit),
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
top_hbox = gtk_hbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (top_hbox), 12);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), top_hbox,
......
......@@ -981,6 +981,8 @@ main_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (GTK_WINDOW (appwin));
main_hbox = gtk_hbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_hbox), 12);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (appwin)->vbox), main_hbox,
......
......@@ -1377,9 +1377,11 @@ main_dialog (GimpDrawable *drawable)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (appwin),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (GTK_WINDOW (appwin));
main_hbox = gtk_hbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_hbox), 12);
......
......@@ -593,16 +593,16 @@ save_dialog (void)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dlg),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
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_widget_show (vbox);
toggle = gtk_check_button_new_with_mnemonic (_("_RLE encoded"));
toggle = gtk_check_button_new_with_mnemonic (_("_Run-Length Encoded"));
gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), encoded);
gtk_widget_show (toggle);
......
......@@ -406,6 +406,8 @@ alienmap2_dialog (void)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -1195,6 +1195,8 @@ CML_explorer_dialog (void)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (GTK_WINDOW (dlg));
CML_preview_defer = TRUE;
hbox = gtk_hbox_new (FALSE, 12);
......
......@@ -403,9 +403,11 @@ align_layers_dialog (void)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dlg),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (GTK_WINDOW (dlg));
table = gtk_table_new (7, 3, FALSE);
gtk_table_set_col_spacings (GTK_TABLE (table), 6);
......
......@@ -417,6 +417,8 @@ build_dialog (GimpImageBaseType basetype,
g_free (windowname);
gimp_window_set_transient_for_default_display (GTK_WINDOW (dlg));
g_signal_connect (dlg, "response",
G_CALLBACK (window_response),
NULL);
......
......@@ -405,6 +405,8 @@ lens_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -241,6 +241,8 @@ blinds_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -362,6 +362,8 @@ borderaverage_dialog (gint32 image_ID,
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -841,9 +841,11 @@ bumpmap_dialog (void)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (GTK_WINDOW (dialog));
paned = gtk_hpaned_new ();
gtk_container_set_border_width (GTK_CONTAINER (paned), 12);
......
......@@ -822,6 +822,8 @@ cartoon_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -365,6 +365,8 @@ doDialog (void)
NULL);
gimp_window_set_transient_for_default_display (GTK_WINDOW (dialog));
vbox = gtk_vbox_new (FALSE, 6);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), vbox,
......
......@@ -503,6 +503,8 @@ cm_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -356,6 +356,8 @@ checkerboard_dialog (gint32 image_ID,
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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);
......
......@@ -269,6 +269,8 @@ colorify_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -390,6 +390,8 @@ color_to_alpha_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -1288,6 +1288,8 @@ compose_dialog (const gchar *compose_type,
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (GTK_WINDOW (dlg));
/* parameter settings */
hbox = gtk_hbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 12);
......
......@@ -885,6 +885,8 @@ convmatrix_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -280,6 +280,8 @@ cubism_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -1245,9 +1245,11 @@ bender_new_dialog (GimpDrawable *drawable)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (cd->shell),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (GTK_WINDOW (cd->shell));
g_signal_connect (cd->shell, "response",
G_CALLBACK (bender_response),
......
......@@ -1238,6 +1238,8 @@ decompose_dialog (void)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (GTK_WINDOW (dlg));
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,
......
......@@ -338,6 +338,8 @@ deinterlace_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -609,6 +609,7 @@ DepthMerge_executeRegion (DepthMerge *dm,
static gboolean
DepthMerge_dialog (DepthMerge *dm)
{
GtkWidget *dialog;
GtkWidget *vbox;
GtkWidget *frame;
GtkWidget *table;
......@@ -623,23 +624,25 @@ DepthMerge_dialog (DepthMerge *dm)
gimp_ui_init ("depthmerge", TRUE);
dm->interface->dialog =
gimp_dialog_new (_("Depth Merge"), "depthmerge",
NULL, 0,
gimp_standard_help_func, HELP_ID,
dialog = gimp_dialog_new (_("Depth Merge"), "depthmerge",
NULL, 0,
gimp_standard_help_func, HELP_ID,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
NULL);
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dm->interface->dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dm->interface->dialog)->vbox),
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox),
vbox, FALSE, FALSE, 0);
gtk_widget_show (vbox);
......
......@@ -404,6 +404,8 @@ despeckle_dialog (void)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -449,6 +449,8 @@ destripe_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -445,6 +445,8 @@ diffraction_dialog (void)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (GTK_WINDOW (dialog));
hbox = gtk_hbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 12);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), hbox,
......
......@@ -324,6 +324,8 @@ displace_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -287,6 +287,8 @@ dog_dialog (gint32 image_ID,
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -655,6 +655,8 @@ edge_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -462,6 +462,8 @@ emboss_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -222,6 +222,8 @@ engrave_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -299,6 +299,8 @@ exchange_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (GTK_WINDOW (dialog));
/* do some boxes here */
main_vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 12);
......
......@@ -1457,6 +1457,8 @@ film_dialog (gint32 image_ID)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (GTK_WINDOW (dlg));
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);
......
......@@ -320,6 +320,8 @@ flare_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -1193,6 +1193,8 @@ fp_dialog (void)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (GTK_WINDOW (dlg));
g_signal_connect (dlg, "response",
G_CALLBACK (fp_response),
dlg);
......@@ -1211,7 +1213,7 @@ fp_dialog (void)
fp_frames.show = show = fp_create_show();
fp_frames.satur = satur = fp_create_msnls();
fp_frames.pixelsBy = pixelsBy = fp_create_pixels_select_by();
control = fp_create_control();
control = fp_create_control();
/********************************************************************/
/******************** PUT EVERYTHING TOGETHER ******************/
......
......@@ -698,6 +698,8 @@ dialog_show (void)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (GTK_WINDOW (dialog));
mainbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (mainbox), 12);
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), mainbox);
......
......@@ -263,6 +263,8 @@ glasstile_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -800,6 +800,8 @@ dialog_run (void)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), vbox,
......
......@@ -646,6 +646,8 @@ dialog (gint32 image_ID,
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (GTK_WINDOW (dlg));
/* Get the image resolution and unit */
gimp_image_get_resolution (image_ID, &xres, &yres);
unit = gimp_image_get_unit (image_ID);
......
......@@ -581,6 +581,8 @@ pluginCoreIA (piArgs *argp)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (GTK_WINDOW (dlg));
hbox = gtk_hbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 12);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), hbox, TRUE, TRUE, 0);
......
......@@ -402,6 +402,8 @@ illusion_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -1164,6 +1164,8 @@ iwarp_dialog (void)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (GTK_WINDOW (dlg));
g_signal_connect (dlg, "response",
G_CALLBACK (iwarp_response),
NULL);
......
......@@ -2432,6 +2432,8 @@ jigsaw_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -653,6 +653,8 @@ create_main_dialog (void)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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);
......
......@@ -519,6 +519,8 @@ save_dialog (void)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (GTK_WINDOW (dlg));
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),
......
......@@ -366,6 +366,8 @@ mapcolor_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -276,6 +276,8 @@ max_rgb_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -921,6 +921,8 @@ mblur_dialog (gint32 image_ID,
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -595,6 +595,8 @@ mosaic_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -713,6 +713,8 @@ neon_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -1201,6 +1201,8 @@ newsprint_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (GTK_WINDOW (dialog));
paned = gtk_hpaned_new ();
gtk_container_set_border_width (GTK_CONTAINER (paned), 12);
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), paned);
......
......@@ -1029,6 +1029,8 @@ nlfilter_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -459,6 +459,8 @@ noisify_dialog (GimpDrawable *drawable,
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -316,6 +316,8 @@ nova_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -486,6 +486,8 @@ oilify_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (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 (dialog)->vbox), main_vbox);
......
......@@ -245,6 +245,8 @@ open_dialog (void)
GTK_RESPONSE_CANCEL,
-1);
gimp_window_set_transient_for_default_display (GTK_WINDOW (dialog));
main_hbox = gtk_hbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_hbox), 12);
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), main_hbox);
......
......@@ -851,6 +851,8 @@ photocopy_dialog (GimpDrawable *drawable)
GTK_RESPONSE_CANCEL,