[evince/wip/gpoo/fix-deprecations-before-3.16: 10/11] shell: Remove gtk_dialog_set_alternative_button_order
- From: Germán Poo-Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/wip/gpoo/fix-deprecations-before-3.16: 10/11] shell: Remove gtk_dialog_set_alternative_button_order
- Date: Wed, 10 Oct 2018 20:30:08 +0000 (UTC)
commit ccdf8f489d73361508d3b88b884d5e797ddf76c2
Author: Germán Poo-Caamaño <gpoo gnome org>
Date: Tue Oct 9 15:01:58 2018 -0300
shell: Remove gtk_dialog_set_alternative_button_order
shell/ev-password-view.c | 6 +-----
shell/ev-sidebar-attachments.c | 4 ----
shell/ev-window.c | 22 ----------------------
3 files changed, 1 insertion(+), 31 deletions(-)
---
diff --git a/shell/ev-password-view.c b/shell/ev-password-view.c
index af9e1a97..beb175fe 100644
--- a/shell/ev-password-view.c
+++ b/shell/ev-password-view.c
@@ -263,11 +263,7 @@ 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);
- gtk_dialog_set_alternative_button_order (dialog,
- GTK_RESPONSE_OK,
- GTK_RESPONSE_CANCEL,
- -1);
-
+
/* Build contents */
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
diff --git a/shell/ev-sidebar-attachments.c b/shell/ev-sidebar-attachments.c
index 944cebe8..19d92dd5 100644
--- a/shell/ev-sidebar-attachments.c
+++ b/shell/ev-sidebar-attachments.c
@@ -498,10 +498,6 @@ ev_sidebar_attachments_confirm_overwrite (EvSidebarAttachments *attachbar,
gtk_dialog_add_button (GTK_DIALOG (dialog), _("_Cancel"), GTK_RESPONSE_CANCEL);
ev_add_custom_button_to_dialog (GTK_DIALOG (dialog), _("_Replace"),
_("_Save As…"), GTK_RESPONSE_ACCEPT);
- gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
- GTK_RESPONSE_ACCEPT,
- GTK_RESPONSE_CANCEL,
- -1);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT);
if (gtk_window_has_group (GTK_WINDOW (toplevel)))
diff --git a/shell/ev-window.c b/shell/ev-window.c
index e29c593a..1d3af00f 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -2934,10 +2934,6 @@ ev_window_save_as (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);
@@ -3701,11 +3697,6 @@ ev_window_check_document_modified (EvWindow *ev_window,
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
"%s %s", secondary_text, secondary_text_command);
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);
gtk_widget_show (dialog);
@@ -3801,11 +3792,6 @@ ev_window_check_print_queue (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),
@@ -6627,10 +6613,6 @@ ev_window_popup_cmd_save_image_as (GSimpleAction *action,
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);
@@ -6852,10 +6834,6 @@ ev_window_popup_cmd_save_attachment_as (GSimpleAction *action,
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]