[evince/wip/gpoo/fix-deprecated-symbols: 2/4] shell: Remove gtk_dialog_set_alternative_button_order



commit 219550c9f696e652006c467d6c8b3dcebb790af3
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Tue Nov 6 17:47:20 2018 -0300

    shell: Remove gtk_dialog_set_alternative_button_order

 shell/ev-window.c | 22 ----------------------
 1 file changed, 22 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index ae3b8c19..b6927382 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -2924,10 +2924,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);
@@ -3689,11 +3685,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);
 
@@ -3789,11 +3780,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),
@@ -6613,10 +6599,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);
@@ -6838,10 +6820,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]