summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/ev-password-view.c2
-rw-r--r--shell/ev-window.c10
2 files changed, 12 insertions, 0 deletions
diff --git a/shell/ev-password-view.c b/shell/ev-password-view.c
index 545c064c..d5e49b5e 100644
--- a/shell/ev-password-view.c
+++ b/shell/ev-password-view.c
@@ -284,10 +284,12 @@ ev_password_view_ask_password (EvPasswordView *password_view)
gtk_dialog_set_default_response (dialog, GTK_RESPONSE_OK);
gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
GTK_RESPONSE_OK, FALSE);
+#if !GTK_CHECK_VERSION(3,0,0)
gtk_dialog_set_alternative_button_order (dialog,
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
-1);
+#endif
/* Build contents */
hbox = gtk_hbox_new (FALSE, 12);
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);