summaryrefslogtreecommitdiff
path: root/baobab/src/baobab-utils.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-21 16:50:22 +0300
committermonsta <[email protected]>2016-01-21 17:31:06 +0300
commit2275a436e578255b37766ad09681074ea5722e8f (patch)
tree8a7567ae06d82d8db46835afa2929a230d125662 /baobab/src/baobab-utils.c
parent13490a6cb5b8ddb3668176b3b24794f128ad279c (diff)
downloadmate-utils-2275a436e578255b37766ad09681074ea5722e8f.tar.bz2
mate-utils-2275a436e578255b37766ad09681074ea5722e8f.tar.xz
baobab: use gtk_image_new_from_icon_name in both GTK+ builds
Diffstat (limited to 'baobab/src/baobab-utils.c')
-rw-r--r--baobab/src/baobab-utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/baobab/src/baobab-utils.c b/baobab/src/baobab-utils.c
index 38c20571..e84d7b51 100644
--- a/baobab/src/baobab-utils.c
+++ b/baobab/src/baobab-utils.c
@@ -337,13 +337,13 @@ baobab_check_dir (GFile *file)
}
static void
-add_popupmenu_item (GtkMenu *pmenu, const gchar *label, const gchar *stock, GCallback item_cb)
+add_popupmenu_item (GtkMenu *pmenu, const gchar *label, const gchar *icon_name, GCallback item_cb)
{
GtkWidget *item;
GtkWidget *image;
item = gtk_image_menu_item_new_with_mnemonic (label);
- image = gtk_image_new_from_stock (stock, GTK_ICON_SIZE_MENU);
+ image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_MENU);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
g_signal_connect (item, "activate", item_cb, NULL);
@@ -360,13 +360,13 @@ popupmenu_list (GtkTreePath *path, GdkEventButton *event, gboolean can_trash)
add_popupmenu_item (GTK_MENU (pmenu),
_("_Open Folder"),
- "gtk-open",
+ "document-open",
G_CALLBACK (open_file_cb));
if (baobab.is_local && can_trash) {
add_popupmenu_item (GTK_MENU (pmenu),
_("Mo_ve to Trash"),
- "gtk-delete",
+ "edit-delete",
G_CALLBACK (trash_dir_cb));
}