summaryrefslogtreecommitdiff
path: root/trashapplet/src
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-02-03 18:03:50 +0100
committerraveit65 <[email protected]>2018-02-09 16:17:56 +0100
commit607d5228f3a280dd8acfcdaba7da7c83c496de32 (patch)
tree26f39957ef1935326935565892b98e4640ee9603 /trashapplet/src
parent94618cb836c3213e28c3d75fc6bc458bf6cd59b3 (diff)
downloadmate-applets-607d5228f3a280dd8acfcdaba7da7c83c496de32.tar.bz2
mate-applets-607d5228f3a280dd8acfcdaba7da7c83c496de32.tar.xz
avoid deprecated GtkStock
Diffstat (limited to 'trashapplet/src')
-rw-r--r--trashapplet/src/trash-empty.c2
-rw-r--r--trashapplet/src/trashapplet.c16
2 files changed, 9 insertions, 9 deletions
diff --git a/trashapplet/src/trash-empty.c b/trashapplet/src/trash-empty.c
index 6505e50c..1b744d71 100644
--- a/trashapplet/src/trash-empty.c
+++ b/trashapplet/src/trash-empty.c
@@ -347,7 +347,7 @@ trash_empty_show_confirmation_dialog (GtkWidget *parent)
atk_object_set_role (gtk_widget_get_accessible (dialog), ATK_ROLE_ALERT);
gtk_window_set_wmclass (GTK_WINDOW (dialog), "empty_trash", "Caja");
- gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_CANCEL,
+ gtk_dialog_add_button (GTK_DIALOG (dialog), "gtk-cancel",
GTK_RESPONSE_CANCEL);
button = gtk_button_new_with_mnemonic (_("_Empty Trash"));
diff --git a/trashapplet/src/trashapplet.c b/trashapplet/src/trashapplet.c
index c2036cf0..3c13c527 100644
--- a/trashapplet/src/trashapplet.c
+++ b/trashapplet/src/trashapplet.c
@@ -65,16 +65,16 @@ static void trash_applet_show_help (GtkAction *action,
TrashApplet *applet);
static const GtkActionEntry trash_applet_menu_actions [] = {
- { "EmptyTrash", GTK_STOCK_CLEAR, N_("_Empty Trash"),
+ { "EmptyTrash", "edit-clear", N_("_Empty Trash"),
NULL, NULL,
G_CALLBACK (trash_applet_do_empty) },
- { "OpenTrash", GTK_STOCK_OPEN, N_("_Open Trash"),
+ { "OpenTrash", "document-open", N_("_Open Trash"),
NULL, NULL,
G_CALLBACK (trash_applet_open_folder) },
- { "HelpTrash", GTK_STOCK_HELP, N_("_Help"),
+ { "HelpTrash", "help-browser", N_("_Help"),
NULL, NULL,
G_CALLBACK (trash_applet_show_help) },
- { "AboutTrash", GTK_STOCK_ABOUT, N_("_About"),
+ { "AboutTrash", "help-about", N_("_About"),
NULL, NULL,
G_CALLBACK (trash_applet_show_about) }
};
@@ -471,8 +471,8 @@ confirm_delete_immediately (GtkWidget *parent_view,
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), hbox,
FALSE, FALSE, 0);
- image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_QUESTION,
- GTK_ICON_SIZE_DIALOG);
+ image = gtk_image_new_from_icon_name ("dialog-question",
+ GTK_ICON_SIZE_DIALOG);
gtk_widget_set_halign (image, GTK_ALIGN_CENTER);
gtk_widget_set_valign (image, GTK_ALIGN_START);
gtk_widget_show (image);
@@ -512,9 +512,9 @@ confirm_delete_immediately (GtkWidget *parent_view,
gtk_widget_show (label);
g_free (detail);
- gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_CANCEL,
+ gtk_dialog_add_button (GTK_DIALOG (dialog), "gtk-cancel",
GTK_RESPONSE_CANCEL);
- gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_DELETE,
+ gtk_dialog_add_button (GTK_DIALOG (dialog), "gtk-delete",
GTK_RESPONSE_YES);
gtk_dialog_set_default_response (GTK_DIALOG (dialog),
GTK_RESPONSE_YES);