summaryrefslogtreecommitdiff
path: root/src/nautilus-window.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2013-08-13 14:25:10 +0200
committerCosimo Cecchi <cosimoc@gnome.org>2013-08-13 14:25:10 +0200
commit82a7c3ddaa1b2bda7d03f9d258fa218468156488 (patch)
tree307abfa3cbf9373e4fe4af20a8254e2ce03dd943 /src/nautilus-window.c
parent3a61cbb24090dea76af0cc14a128f0c57fba77dc (diff)
downloadnautilus-82a7c3ddaa1b2bda7d03f9d258fa218468156488.tar.gz
src: don't use deprecated GtkImageMenuItem and GtkStock
There's another occurrence of GtkImageMenuItem right now, for the "Open With..." menu which is harder to fix.
Diffstat (limited to 'src/nautilus-window.c')
-rw-r--r--src/nautilus-window.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 1aa3fed82..371e52bfa 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -1152,7 +1152,6 @@ notebook_popup_menu_show (NautilusWindow *window,
{
GtkWidget *popup;
GtkWidget *item;
- GtkWidget *image;
int button, event_time;
gboolean can_move_left, can_move_right;
NautilusNotebook *notebook;
@@ -1193,9 +1192,7 @@ notebook_popup_menu_show (NautilusWindow *window,
gtk_menu_shell_append (GTK_MENU_SHELL (popup),
gtk_separator_menu_item_new ());
- item = gtk_image_menu_item_new_with_mnemonic (_("_Close Tab"));
- image = gtk_image_new_from_stock (GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU);
- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
+ item = gtk_menu_item_new_with_mnemonic (_("_Close Tab"));
g_signal_connect (item, "activate",
G_CALLBACK (notebook_popup_menu_close_cb), window);
gtk_menu_shell_append (GTK_MENU_SHELL (popup),