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

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);
......
Supports Markdown
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