Commit 0c9b36d8 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

app/actions/gradient-editor-commands.c app/widgets/gimpcolordialog.c

2005-07-07  Sven Neumann  <sven@gimp.org>

	* app/actions/gradient-editor-commands.c
	* app/widgets/gimpcolordialog.c
	* app/widgets/gimpdock.c
	* plug-ins/gflare/gflare.c
	* plug-ins/script-fu/script-fu-server.c: specify alternative
	button order in some places that were missed earlier (spotted by
	Stephan Binner).
parent 4b45448b
2005-07-07 Sven Neumann <sven@gimp.org>
* app/actions/gradient-editor-commands.c
* app/widgets/gimpcolordialog.c
* app/widgets/gimpdock.c
* plug-ins/script-fu/script-fu-server.c:
2005-07-06 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpactionview.c (gimp_action_view_new): set a
......
......@@ -476,6 +476,11 @@ gradient_editor_split_uniformly_cmd_callback (GtkAction *action,
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
g_signal_connect (dialog, "response",
G_CALLBACK (gradient_editor_split_uniform_response),
editor);
......
......@@ -144,6 +144,12 @@ gimp_color_dialog_init (GimpColorDialog *dialog)
NULL);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
RESPONSE_RESET,
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
dialog->selection = gimp_color_selection_new ();
gtk_container_set_border_width (GTK_CONTAINER (dialog->selection), 12);
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox),
......
......@@ -349,6 +349,11 @@ gimp_dock_delete_event (GtkWidget *widget,
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
gimp_message_box_set_primary_text (GIMP_MESSAGE_DIALOG (dialog)->box,
_("Close all tabs?"));
gimp_message_box_set_text (GIMP_MESSAGE_DIALOG (dialog)->box,
......
......@@ -2297,9 +2297,9 @@ dlg_run (void)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (shell),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
/*
* main hbox
......@@ -3242,16 +3242,22 @@ ed_run (GtkWindow *parent,
/*
* Dialog Shell
*/
shell = ed->shell =
gimp_dialog_new (_("GFlare Editor"), "gflare",
GTK_WIDGET (parent), 0,
gimp_standard_help_func, HELP_ID,
ed->shell =
shell = gimp_dialog_new (_("GFlare Editor"), "gflare",
GTK_WIDGET (parent), 0,
gimp_standard_help_func, HELP_ID,
_("Rescan Gradients"), RESPONSE_RESCAN,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
_("Rescan Gradients"), RESPONSE_RESCAN,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
NULL);
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (shell),
RESPONSE_RESCAN,
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
g_signal_connect (shell, "response",
G_CALLBACK (ed_response),
......
......@@ -659,6 +659,11 @@ server_interface (void)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dlg),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
g_signal_connect (dlg, "response",
G_CALLBACK (response_callback),
NULL);
......
Markdown is supported
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