summaryrefslogtreecommitdiff
path: root/shell/ev-password-view.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-23 17:18:15 +0200
committerraveit65 <[email protected]>2016-06-24 20:48:20 +0200
commite3aaf39c9ca3fa3dc3d030caef68f28b8a27b086 (patch)
tree521a4e21f91157ee83e8bc488571588e5915a8f6 /shell/ev-password-view.c
parent9ad55d4b3af02a5416a9d2afd7512ee3318cb307 (diff)
downloadatril-e3aaf39c9ca3fa3dc3d030caef68f28b8a27b086.tar.bz2
atril-e3aaf39c9ca3fa3dc3d030caef68f28b8a27b086.tar.xz
GTK+-3: do not use deprecated gtk_dialog_set_alternative_button_order
Diffstat (limited to 'shell/ev-password-view.c')
-rw-r--r--shell/ev-password-view.c2
1 files changed, 2 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);