From 7db6cfd8befc84b0a8716d816546d715d1dff1e3 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Tue, 24 Mar 2009 21:48:00 +0000 Subject: Set alternative button order for dialogues. * shell/ev-window.c: (ev_window_cmd_save_as), (ev_window_cmd_file_close_window), (ev_view_popup_cmd_save_image_as), (ev_attachment_popup_cmd_save_attachment_as): Set alternative button order for dialogues. svn path=/trunk/; revision=3556 --- diff --git a/ChangeLog b/ChangeLog index dbda437..4ed30e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2009-03-19 Christian Persch + * shell/ev-window.c: (ev_window_cmd_save_as), + (ev_window_cmd_file_close_window), + (ev_view_popup_cmd_save_image_as), + (ev_attachment_popup_cmd_save_attachment_as): Set alternative button + order for dialogues. + +2009-03-19 Christian Persch + Bug 575085 – titles not translated in the nautilus tab * properties/ev-properties-view.c: (set_property): Translate the diff --git a/shell/ev-window.c b/shell/ev-window.c index 455c6a5..a9578e4 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -2601,6 +2601,10 @@ ev_window_cmd_save_as (GtkAction *action, EvWindow *ev_window) ev_document_factory_add_filters (fc, ev_window->priv->document); gtk_dialog_set_default_response (GTK_DIALOG (fc), GTK_RESPONSE_OK); + gtk_dialog_set_alternative_button_order (GTK_DIALOG (fc), + GTK_RESPONSE_OK, + GTK_RESPONSE_CANCEL, + -1); gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (fc), FALSE); gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (fc), TRUE); @@ -3133,6 +3137,11 @@ ev_window_cmd_file_close_window (GtkAction *action, EvWindow *ev_window) GTK_RESPONSE_YES, NULL); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_YES); + gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), + GTK_RESPONSE_YES, + GTK_RESPONSE_NO, + GTK_RESPONSE_CANCEL, + -1); g_signal_connect (dialog, "response", G_CALLBACK (print_jobs_confirmation_dialog_response), @@ -5761,6 +5770,11 @@ ev_view_popup_cmd_save_image_as (GtkAction *action, EvWindow *window) NULL); gtk_dialog_set_default_response (GTK_DIALOG (fc), GTK_RESPONSE_OK); + gtk_dialog_set_alternative_button_order (GTK_DIALOG (fc), + GTK_RESPONSE_OK, + GTK_RESPONSE_CANCEL, + -1); + gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (fc), FALSE); gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (fc), TRUE); @@ -5919,6 +5933,11 @@ ev_attachment_popup_cmd_save_attachment_as (GtkAction *action, EvWindow *window) NULL); gtk_dialog_set_default_response (GTK_DIALOG (fc), GTK_RESPONSE_OK); + gtk_dialog_set_alternative_button_order (GTK_DIALOG (fc), + GTK_RESPONSE_OK, + GTK_RESPONSE_CANCEL, + -1); + gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (fc), TRUE); gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (fc), FALSE); -- cgit v0.9.1