Commit 3fef8514 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

app/actions/data-commands.c app/actions/edit-commands.c

2005-02-10  Sven Neumann  <sven@gimp.org>

	* app/actions/data-commands.c
	* app/actions/edit-commands.c
	* app/actions/error-console-commands.c
	* app/actions/file-commands.c
	* app/actions/gradient-editor-commands.c
	* app/actions/gradients-commands.c
	* app/actions/plug-in-commands.c
	* app/actions/templates-commands.c
	* app/actions/text-editor-commands.c
	* app/actions/tool-options-commands.c
	* app/dialogs/image-new-dialog.c
	* app/dialogs/resize-dialog.c
	* app/display/gimpdisplayshell-close.c
	* app/display/gimpdisplayshell-filter-dialog.c
	* app/display/gimpdisplayshell-scale.c
	* app/tools/gimpimagemaptool.c
	* app/tools/gimptexttool.c
	* libgimp/gimpexport.c
	* libgimpwidgets/gimpcolorbutton.c
	* libgimpwidgets/gimpfileentry.c
	* libgimpwidgets/gimpquerybox.c
	* libgimpwidgets/gimpunitmenu.c: applied another patch by Patrice
	Tremblay to make more dialogs obey the alternative button order
	setting (bug #166678).
parent 4bfb3e26
2005-02-10 Sven Neumann <sven@gimp.org>
* app/actions/data-commands.c
* app/actions/edit-commands.c
* app/actions/error-console-commands.c
* app/actions/file-commands.c
* app/actions/gradient-editor-commands.c
* app/actions/gradients-commands.c
* app/actions/plug-in-commands.c
* app/actions/templates-commands.c
* app/actions/text-editor-commands.c
* app/actions/tool-options-commands.c
* app/dialogs/image-new-dialog.c
* app/dialogs/resize-dialog.c
* app/display/gimpdisplayshell-close.c
* app/display/gimpdisplayshell-filter-dialog.c
* app/display/gimpdisplayshell-scale.c
* app/tools/gimpimagemaptool.c
* app/tools/gimptexttool.c
* libgimp/gimpexport.c
* libgimpwidgets/gimpcolorbutton.c
* libgimpwidgets/gimpfileentry.c
* libgimpwidgets/gimpquerybox.c
* libgimpwidgets/gimpunitmenu.c: applied another patch by Patrice
Tremblay to make more dialogs obey the alternative button order
setting (bug #166678).
2005-02-09 Manish Singh <yosh@gimp.org>
* app/text/gimpfont-utils.[ch]: new function to workaround pango
......@@ -26,7 +53,7 @@
* plug-ins/common/pixelize.c: added a preview.
2005-02-09 Sven Neumann <neumann@jpk.com>
2005-02-09 Sven Neumann <sven@gimp.org>
* plug-ins/uri/uri-backend-wget.c: marked strings for translation.
......
......@@ -202,6 +202,11 @@ data_delete_cmd_callback (GtkAction *action,
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
g_signal_connect_object (data, "disconnect",
G_CALLBACK (gtk_widget_destroy),
dialog, G_CONNECT_SWAPPED);
......
......@@ -110,6 +110,11 @@ edit_undo_clear_cmd_callback (GtkAction *action,
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
g_signal_connect_object (gimage, "disconnect",
G_CALLBACK (gtk_widget_destroy),
dialog, G_CONNECT_SWAPPED);
......
......@@ -85,6 +85,11 @@ error_console_save_cmd_callback (GtkAction *action,
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (console->file_dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
console->save_selection = value;
g_object_add_weak_pointer (G_OBJECT (console->file_dialog),
......
......@@ -309,6 +309,11 @@ file_revert_cmd_callback (GtkAction *action,
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
g_signal_connect_object (gdisp, "disconnect",
G_CALLBACK (gtk_widget_destroy),
dialog, G_CONNECT_SWAPPED);
......
......@@ -377,6 +377,11 @@ gradient_editor_replicate_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_replicate_response),
editor);
......
......@@ -74,6 +74,11 @@ gradients_save_as_pov_ray_cmd_callback (GtkAction *action,
NULL));
gtk_dialog_set_alternative_button_order (GTK_DIALOG (chooser),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
g_free (title);
gtk_window_set_screen (GTK_WINDOW (chooser),
......
......@@ -197,6 +197,11 @@ plug_in_reset_all_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 (plug_in_reset_all_response),
gimp);
......
......@@ -229,6 +229,11 @@ templates_delete_cmd_callback (GtkAction *action,
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
g_object_weak_ref (G_OBJECT (dialog), (GWeakNotify) g_free, delete_data);
g_signal_connect_object (template, "disconnect",
G_CALLBACK (gtk_widget_destroy),
......
......@@ -68,6 +68,11 @@ text_editor_load_cmd_callback (GtkAction *action,
chooser = GTK_FILE_CHOOSER (editor->file_dialog);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (editor->file_dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
g_object_add_weak_pointer (G_OBJECT (chooser),
(gpointer) &editor->file_dialog);
......
......@@ -219,6 +219,11 @@ tool_options_reset_all_cmd_callback (GtkAction *action,
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
g_signal_connect_object (editor, "unmap",
G_CALLBACK (gtk_widget_destroy),
dialog, G_CONNECT_SWAPPED);
......
......@@ -283,6 +283,11 @@ image_new_confirm_dialog (ImageNewDialog *data)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (data->confirm_dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
g_signal_connect (dialog, "response",
G_CALLBACK (image_new_confirm_response),
data);
......
......@@ -144,10 +144,10 @@ resize_dialog_new (GimpViewable *viewable,
gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
RESPONSE_RESET,
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
RESPONSE_RESET,
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
private = g_new0 (ResizeDialog, 1);
......
......@@ -137,6 +137,12 @@ gimp_display_shell_close_dialog (GimpDisplayShell *shell,
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
RESPONSE_SAVE,
GTK_RESPONSE_CLOSE,
GTK_RESPONSE_CANCEL,
-1);
g_signal_connect (dialog, "destroy",
G_CALLBACK (gtk_widget_destroyed),
&shell->close_dialog);
......
......@@ -83,6 +83,11 @@ gimp_display_shell_filter_dialog_new (GimpDisplayShell *shell)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (cdd->dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
gtk_window_set_destroy_with_parent (GTK_WINDOW (cdd->dialog), TRUE);
g_object_weak_ref (G_OBJECT (cdd->dialog), (GWeakNotify) g_free, cdd);
......
......@@ -546,6 +546,11 @@ gimp_display_shell_scale_dialog (GimpDisplayShell *shell)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (shell->scale_dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
g_object_weak_ref (G_OBJECT (shell->scale_dialog),
(GWeakNotify) g_free, data);
g_object_add_weak_pointer (G_OBJECT (shell->scale_dialog),
......
......@@ -244,6 +244,13 @@ gimp_image_map_tool_initialize (GimpTool *tool,
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (image_map_tool->shell),
RESPONSE_RESET,
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
g_signal_connect_object (shell, "response",
G_CALLBACK (gimp_image_map_tool_response),
G_OBJECT (image_map_tool), 0);
......
......@@ -849,6 +849,12 @@ gimp_text_tool_confirm_dialog (GimpTextTool *text_tool)
GIMP_STOCK_EDIT, GTK_RESPONSE_OK,
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
RESPONSE_NEW,
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
g_signal_connect (dialog, "response",
......
......@@ -388,6 +388,11 @@ confirm_save_dialog (const gchar *message,
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
hbox = gtk_hbox_new (FALSE, 12);
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), hbox);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 12);
......
......@@ -336,6 +336,12 @@ gimp_color_button_clicked (GtkButton *button)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
RESPONSE_RESET,
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
g_signal_connect (dialog, "response",
G_CALLBACK (gimp_color_button_dialog_response),
color_button);
......
......@@ -364,6 +364,11 @@ gimp_file_entry_browse_clicked (GtkWidget *widget,
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (entry->file_dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
chooser = GTK_FILE_CHOOSER (entry->file_dialog);
gtk_window_set_position (GTK_WINDOW (chooser), GTK_WIN_POS_MOUSE);
......
......@@ -129,6 +129,11 @@ create_query_box (const gchar *title,
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (query_box->qbox),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
query_box->response_handler =
g_signal_connect (query_box->qbox, "response",
G_CALLBACK (response_callback),
......
......@@ -619,6 +619,11 @@ gimp_unit_menu_create_selection (GimpUnitMenu *menu)
NULL);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (menu->selection),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
g_object_add_weak_pointer (G_OBJECT (menu->selection),
(gpointer) &menu->selection);
......
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