Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2009-03-24 21:48:00 (GMT)
committer Christian Persch <chpe@src.gnome.org>2009-03-24 21:48:00 (GMT)
commit7db6cfd8befc84b0a8716d816546d715d1dff1e3 (patch)
tree40c0ab061c361de13432e9f0e0fc36a3b16b5a56
parent0c8013724526d47dbf0a9c926ea32e47a5807861 (diff)
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
-rw-r--r--ChangeLog8
-rw-r--r--shell/ev-window.c19
2 files changed, 27 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index dbda437..4ed30e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
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
* 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);