From c6fba6db82e8f427bb573f36578b99f12d6968f9 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sat, 11 Jun 2016 17:00:16 +0200 Subject: do not use deprecated gtk_dialog_set_alternative_button_order deprecated since gtk+-3.10 --- src/skey-popup.c | 5 ----- src/terminal-app.c | 9 +-------- src/terminal-window.c | 5 ----- 3 files changed, 1 insertion(+), 18 deletions(-) (limited to 'src') diff --git a/src/skey-popup.c b/src/skey-popup.c index 287c93b..efc2f70 100644 --- a/src/skey-popup.c +++ b/src/skey-popup.c @@ -206,11 +206,6 @@ terminal_skey_do_popup (GtkWindow *window, gtk_window_set_modal (GTK_WINDOW (dialog), TRUE); gtk_window_set_destroy_with_parent (GTK_WINDOW (dialog), TRUE); - gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), - GTK_RESPONSE_OK, - GTK_RESPONSE_CANCEL, - -1); - /* FIXME: make this dialogue close if the screen closes! */ data = g_new (SkeyData, 1); diff --git a/src/terminal-app.c b/src/terminal-app.c index af9ac39..f1c02c1 100644 --- a/src/terminal-app.c +++ b/src/terminal-app.c @@ -692,10 +692,7 @@ profile_list_delete_button_clicked_cb (GtkWidget *button, GTK_STOCK_DELETE, GTK_RESPONSE_ACCEPT, NULL); - gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), - GTK_RESPONSE_ACCEPT, - GTK_RESPONSE_REJECT, - -1); + gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT); @@ -1245,10 +1242,6 @@ terminal_app_new_profile (TerminalApp *app, gtk_label_set_mnemonic_widget (GTK_LABEL (base_label), combo); - gtk_dialog_set_alternative_button_order (GTK_DIALOG (app->new_profile_dialog), - GTK_RESPONSE_ACCEPT, - GTK_RESPONSE_CANCEL, - -1); gtk_dialog_set_default_response (GTK_DIALOG (app->new_profile_dialog), GTK_RESPONSE_ACCEPT); gtk_dialog_set_response_sensitive (GTK_DIALOG (app->new_profile_dialog), GTK_RESPONSE_ACCEPT, FALSE); } diff --git a/src/terminal-window.c b/src/terminal-window.c index 70fefcc..9b320fa 100644 --- a/src/terminal-window.c +++ b/src/terminal-window.c @@ -3144,11 +3144,6 @@ confirm_close_window_or_tab (TerminalWindow *window, gtk_dialog_add_button (GTK_DIALOG (dialog), n_tabs > 1 ? _("C_lose Window") : _("C_lose Terminal"), GTK_RESPONSE_ACCEPT); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT); - gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog), - GTK_RESPONSE_ACCEPT, - GTK_RESPONSE_CANCEL, - -1); - g_object_set_data (G_OBJECT (dialog), "close-screen", screen); g_signal_connect (dialog, "destroy", -- cgit v1.2.1