From 70a60111e00fe834e1303d87265c1aa65cb1f086 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Wed, 14 Feb 2018 04:03:57 +0100 Subject: avoid deprecated GtkStock --- baobab/src/baobab-chart.c | 4 ++-- baobab/src/baobab-remote-connect-dialog.c | 2 +- baobab/src/baobab-utils.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'baobab/src') diff --git a/baobab/src/baobab-chart.c b/baobab/src/baobab-chart.c index 7848bdef..64eedbcd 100644 --- a/baobab/src/baobab-chart.c +++ b/baobab/src/baobab-chart.c @@ -1728,9 +1728,9 @@ baobab_chart_save_snapshot (GtkWidget *chart) fs_dlg = gtk_file_chooser_dialog_new (_("Save Snapshot"), NULL, GTK_FILE_CHOOSER_ACTION_SAVE, - GTK_STOCK_CANCEL, + "gtk-cancel", GTK_RESPONSE_CANCEL, - GTK_STOCK_SAVE, + "gtk-save", GTK_RESPONSE_ACCEPT, NULL); item = (BaobabChartItem *) priv->first_item->data; diff --git a/baobab/src/baobab-remote-connect-dialog.c b/baobab/src/baobab-remote-connect-dialog.c index 603adb9b..c78725ca 100644 --- a/baobab/src/baobab-remote-connect-dialog.c +++ b/baobab/src/baobab-remote-connect-dialog.c @@ -723,7 +723,7 @@ baobab_remote_connect_dialog_init (BaobabRemoteConnectDialog *dialog) setup_for_type (dialog); gtk_dialog_add_button (GTK_DIALOG (dialog), - GTK_STOCK_CANCEL, + "gtk-cancel", GTK_RESPONSE_CANCEL); gtk_dialog_add_button (GTK_DIALOG (dialog), _("_Scan"), diff --git a/baobab/src/baobab-utils.c b/baobab/src/baobab-utils.c index a102bc30..1da18c12 100644 --- a/baobab/src/baobab-utils.c +++ b/baobab/src/baobab-utils.c @@ -106,9 +106,9 @@ dir_select (gboolean SEARCH, GtkWidget *parent) file_chooser = gtk_file_chooser_dialog_new (_("Select Folder"), GTK_WINDOW (parent), GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, - GTK_STOCK_CANCEL, + "gtk-cancel", GTK_RESPONSE_CANCEL, - GTK_STOCK_OPEN, + "gtk-open", GTK_RESPONSE_OK, NULL); gtk_file_chooser_set_show_hidden (GTK_FILE_CHOOSER (file_chooser), FALSE); -- cgit v1.2.1