summaryrefslogtreecommitdiff
path: root/shell/ev-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 382f4c97..59d9f230 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -3091,10 +3091,12 @@ 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);
+#if !GTK_CHECK_VERSION(3,0,0)
gtk_dialog_set_alternative_button_order (GTK_DIALOG (fc),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
+#endif
gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (fc), FALSE);
gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (fc), TRUE);
@@ -3689,11 +3691,13 @@ ev_window_check_document_modified (EvWindow *ev_window)
GTK_RESPONSE_YES,
NULL);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_YES);
+#if !GTK_CHECK_VERSION(3,0,0)
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_YES,
GTK_RESPONSE_NO,
GTK_RESPONSE_CANCEL,
-1);
+#endif
g_signal_connect (dialog, "response",
G_CALLBACK (document_modified_confirmation_dialog_response),
@@ -3792,11 +3796,13 @@ ev_window_check_print_queue (EvWindow *ev_window)
GTK_RESPONSE_YES,
NULL);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_YES);
+#if !GTK_CHECK_VERSION(3,0,0)
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_YES,
GTK_RESPONSE_NO,
GTK_RESPONSE_CANCEL,
-1);
+#endif
g_signal_connect (dialog, "response",
G_CALLBACK (print_jobs_confirmation_dialog_response),
@@ -6978,10 +6984,12 @@ ev_view_popup_cmd_save_image_as (GtkAction *action, EvWindow *window)
NULL);
gtk_dialog_set_default_response (GTK_DIALOG (fc), GTK_RESPONSE_OK);
+#if !GTK_CHECK_VERSION(3,0,0)
gtk_dialog_set_alternative_button_order (GTK_DIALOG (fc),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
+#endif
gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (fc), FALSE);
gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (fc), TRUE);
@@ -7212,10 +7220,12 @@ ev_attachment_popup_cmd_save_attachment_as (GtkAction *action, EvWindow *window)
NULL);
gtk_dialog_set_default_response (GTK_DIALOG (fc), GTK_RESPONSE_OK);
+#if !GTK_CHECK_VERSION(3,0,0)
gtk_dialog_set_alternative_button_order (GTK_DIALOG (fc),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
+#endif
gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (fc), TRUE);
gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (fc), FALSE);