summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-03-29 01:44:14 +0200
committerraveit65 <[email protected]>2018-03-30 08:25:36 +0200
commit70ebaf436ae42309095d11bdb1508faff6004091 (patch)
tree50f2767ea768c5fb635a37491021b7d8d703746e /src
parent414fdf7c8a642ef51fa71aecbc742f55a20deb86 (diff)
downloadcaja-70ebaf436ae42309095d11bdb1508faff6004091.tar.bz2
caja-70ebaf436ae42309095d11bdb1508faff6004091.tar.xz
caja-emblem-sidebar.c: avoid deprecated GtkImageMenuItem
avoid deprecated: gtk_image_menu_item_new_with_label gtk_image_menu_item_set_image gtk_image_menu_item_new_from_stock
Diffstat (limited to 'src')
-rw-r--r--src/caja-emblem-sidebar.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/caja-emblem-sidebar.c b/src/caja-emblem-sidebar.c
index a4ed33aa..6bb0d815 100644
--- a/src/caja-emblem-sidebar.c
+++ b/src/caja-emblem-sidebar.c
@@ -37,6 +37,7 @@
#include <eel/eel-graphic-effects.h>
#include <eel/eel-gdk-pixbuf-extensions.h>
#include <eel/eel-stock-dialogs.h>
+#include <eel/eel-gtk-extensions.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
@@ -354,17 +355,14 @@ caja_emblem_sidebar_rename_cb (GtkWidget *menu_item,
static void
create_popup_menu (CajaEmblemSidebar *emblem_sidebar)
{
- GtkWidget *popup, *menu_item, *menu_image;
+ GtkWidget *popup, *menu_item;
popup = gtk_menu_new ();
+ gtk_menu_set_reserve_toggle_size (GTK_MENU (popup), FALSE);
+
/* add the "rename" menu item */
- menu_image = gtk_image_new_from_icon_name ("document-properties",
- GTK_ICON_SIZE_MENU);
- gtk_widget_show (menu_image);
- menu_item = gtk_image_menu_item_new_with_label (_("Rename"));
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_item),
- menu_image);
+ menu_item = eel_image_menu_item_new_from_icon ("document-properties", _("Rename"));
g_signal_connect (menu_item, "activate",
G_CALLBACK (caja_emblem_sidebar_rename_cb),
@@ -374,8 +372,8 @@ create_popup_menu (CajaEmblemSidebar *emblem_sidebar)
emblem_sidebar->details->popup_rename = menu_item;
/* add "delete" menu item */
- menu_item = gtk_image_menu_item_new_from_stock ("gtk-delete",
- NULL);
+ menu_item = eel_image_menu_item_new_from_icon ("edit-delete", _("_Delete"));
+
g_signal_connect (menu_item, "activate",
G_CALLBACK (caja_emblem_sidebar_delete_cb),
emblem_sidebar);