diff options
author | Pablo Barciela <[email protected]> | 2018-01-26 11:06:00 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-02-12 14:03:07 +0100 |
commit | 17b20172c581009a5d972dbb9bc523e7d3e4126d (patch) | |
tree | d18b5f4c993b16d5a70f0edfdd0ee5ae657aba3d /capplets/appearance | |
parent | 9e312c404d28250bd75782ba6f7a96ba9b707fb1 (diff) | |
download | mate-control-center-17b20172c581009a5d972dbb9bc523e7d3e4126d.tar.bz2 mate-control-center-17b20172c581009a5d972dbb9bc523e7d3e4126d.tar.xz |
avoid deprecated GtkStock
Diffstat (limited to 'capplets/appearance')
-rw-r--r-- | capplets/appearance/appearance-desktop.c | 4 | ||||
-rw-r--r-- | capplets/appearance/appearance-themes.c | 2 | ||||
-rw-r--r-- | capplets/appearance/theme-installer.c | 8 | ||||
-rw-r--r-- | capplets/appearance/theme-util.c | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/capplets/appearance/appearance-desktop.c b/capplets/appearance/appearance-desktop.c index 545f6c12..89e6fef2 100644 --- a/capplets/appearance/appearance-desktop.c +++ b/capplets/appearance/appearance-desktop.c @@ -615,9 +615,9 @@ wp_create_filechooser (AppearanceData *data) gtk_file_chooser_dialog_new (_("Add Wallpaper"), GTK_WINDOW (appearance_capplet_get_widget (data, "appearance_window")), GTK_FILE_CHOOSER_ACTION_OPEN, - GTK_STOCK_CANCEL, + "gtk-cancel", GTK_RESPONSE_CANCEL, - GTK_STOCK_OPEN, + "gtk-open", GTK_RESPONSE_OK, NULL)); diff --git a/capplets/appearance/appearance-themes.c b/capplets/appearance/appearance-themes.c index 07c41507..1028d830 100644 --- a/capplets/appearance/appearance-themes.c +++ b/capplets/appearance/appearance-themes.c @@ -1085,7 +1085,7 @@ void themes_init(AppearanceData* data) w = appearance_capplet_get_widget (data, "theme_custom"); gtk_button_set_image (GTK_BUTTON (w), - gtk_image_new_from_stock (GTK_STOCK_EDIT, GTK_ICON_SIZE_BUTTON)); + gtk_image_new_from_icon_name ("gtk-edit", GTK_ICON_SIZE_BUTTON)); g_signal_connect (w, "clicked", (GCallback) theme_custom_cb, data); del_button = appearance_capplet_get_widget (data, "theme_delete"); diff --git a/capplets/appearance/theme-installer.c b/capplets/appearance/theme-installer.c index 03d7b96d..c79704e9 100644 --- a/capplets/appearance/theme-installer.c +++ b/capplets/appearance/theme-installer.c @@ -481,8 +481,8 @@ mate_theme_install_real (GtkWindow *parent, apply_button = gtk_button_new_with_label (_("Apply New Theme")); gtk_button_set_image (GTK_BUTTON (apply_button), - gtk_image_new_from_stock (GTK_STOCK_APPLY, - GTK_ICON_SIZE_BUTTON)); + gtk_image_new_from_icon_name ("gtk-apply", + GTK_ICON_SIZE_BUTTON)); gtk_dialog_add_action_widget (GTK_DIALOG (dialog), apply_button, GTK_RESPONSE_APPLY); gtk_widget_set_can_default (apply_button, TRUE); gtk_widget_show (apply_button); @@ -815,9 +815,9 @@ mate_theme_installer_run (GtkWindow *parent, dialog = gtk_file_chooser_dialog_new (_("Select Theme"), parent, GTK_FILE_CHOOSER_ACTION_OPEN, - GTK_STOCK_CANCEL, + "gtk-cancel", GTK_RESPONSE_REJECT, - GTK_STOCK_OPEN, + "gtk-open", GTK_RESPONSE_ACCEPT, NULL); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT); diff --git a/capplets/appearance/theme-util.c b/capplets/appearance/theme-util.c index 5f7b6c40..96beb2c2 100644 --- a/capplets/appearance/theme-util.c +++ b/capplets/appearance/theme-util.c @@ -71,7 +71,7 @@ gboolean theme_delete (const gchar *name, ThemeType type) GTK_MESSAGE_QUESTION, GTK_BUTTONS_CANCEL, _("Would you like to delete this theme?")); - gtk_dialog_add_button (dialog, GTK_STOCK_DELETE, GTK_RESPONSE_ACCEPT); + gtk_dialog_add_button (dialog, "gtk-delete", GTK_RESPONSE_ACCEPT); response = gtk_dialog_run (dialog); gtk_widget_destroy (GTK_WIDGET (dialog)); if (response != GTK_RESPONSE_ACCEPT) |