diff options
author | monsta <[email protected]> | 2016-01-21 16:50:22 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-01-21 17:31:06 +0300 |
commit | 2275a436e578255b37766ad09681074ea5722e8f (patch) | |
tree | 8a7567ae06d82d8db46835afa2929a230d125662 | |
parent | 13490a6cb5b8ddb3668176b3b24794f128ad279c (diff) | |
download | mate-utils-2275a436e578255b37766ad09681074ea5722e8f.tar.bz2 mate-utils-2275a436e578255b37766ad09681074ea5722e8f.tar.xz |
baobab: use gtk_image_new_from_icon_name in both GTK+ builds
-rw-r--r-- | baobab/src/baobab-utils.c | 8 | ||||
-rw-r--r-- | baobab/src/baobab.c | 6 |
2 files changed, 7 insertions, 7 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)); } diff --git a/baobab/src/baobab.c b/baobab/src/baobab.c index 27f6b492..2620fcbf 100644 --- a/baobab/src/baobab.c +++ b/baobab/src/baobab.c @@ -922,15 +922,15 @@ create_context_menu (void) menu->up_item = gtk_image_menu_item_new_with_label (_("Move to parent folder")); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu->up_item), - gtk_image_new_from_stock(GTK_STOCK_GO_UP, GTK_ICON_SIZE_MENU)); + gtk_image_new_from_icon_name("go-up", GTK_ICON_SIZE_MENU)); menu->zoom_in_item = gtk_image_menu_item_new_with_label (_("Zoom in")) ; gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu->zoom_in_item), - gtk_image_new_from_stock(GTK_STOCK_ADD, GTK_ICON_SIZE_MENU)); + gtk_image_new_from_icon_name("list-add", GTK_ICON_SIZE_MENU)); menu->zoom_out_item = gtk_image_menu_item_new_with_label (_("Zoom out")); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu->zoom_out_item), - gtk_image_new_from_stock(GTK_STOCK_REMOVE, GTK_ICON_SIZE_MENU)); + gtk_image_new_from_icon_name("list-remove", GTK_ICON_SIZE_MENU)); menu->snapshot_item = gtk_image_menu_item_new_with_label (_("Save screenshot")); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu->snapshot_item), |