Commit 7db6cfd8 authored by Christian Persch's avatar Christian Persch

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
parent 0c801372
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
......
......@@ -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);
......
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