]> www.fi.muni.cz Git - evince.git/commitdiff
Set alternative button order for dialogues.
authorChristian Persch <chpe@src.gnome.org>
Tue, 24 Mar 2009 21:48:00 +0000 (21:48 +0000)
committerChristian Persch <chpe@src.gnome.org>
Tue, 24 Mar 2009 21:48:00 +0000 (21:48 +0000)
* 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

ChangeLog
shell/ev-window.c

index dbda4371b39d934cbd7e0c23dedb01a998902aea..4ed30e4b52ee5933d577e11c0c11836c08cc32a2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-03-19  Christian Persch  <chpe@gnome.org>
+
+       * 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  <chpe@gnome.org>
 
        Bug 575085 – titles not translated in the nautilus tab
index 455c6a59a1fbe97f869fc132c4a5bf109a748d11..a9578e4863031c1fae8e559059a2f4605cd24a61 100644 (file)
@@ -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);