diff options
author | Marcus Carlson <gnomebugzilla@mejlamej.nu> | 2009-08-08 15:08:08 +0200 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2009-08-08 15:08:08 +0200 |
commit | 826d5237d2ea179006b62def4db376544e74d764 (patch) | |
tree | 6564b66c74def011243e197fc42c09bd289bdaff /src/nautilus-window-menus.c | |
parent | 9cba51e5cb8827997eb4203c6eed4614efa34aaa (diff) | |
download | nautilus-826d5237d2ea179006b62def4db376544e74d764.tar.gz |
Always show icons in the history and go menu.
Part of bug #590647.
Diffstat (limited to 'src/nautilus-window-menus.c')
-rw-r--r-- | src/nautilus-window-menus.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nautilus-window-menus.c b/src/nautilus-window-menus.c index d3b2a5fd1..506d592fb 100644 --- a/src/nautilus-window-menus.c +++ b/src/nautilus-window-menus.c @@ -162,8 +162,10 @@ nautilus_menus_append_bookmark_to_menu (NautilusWindow *window, BookmarkHolder *bookmark_holder; char action_name[128]; char *name; + char *path; GdkPixbuf *pixbuf; GtkAction *action; + GtkWidget *menuitem; g_assert (NAUTILUS_IS_WINDOW (window)); g_assert (NAUTILUS_IS_BOOKMARK (bookmark)); @@ -203,7 +205,14 @@ nautilus_menus_append_bookmark_to_menu (NautilusWindow *window, GTK_UI_MANAGER_MENUITEM, FALSE); + path = g_strdup_printf ("%s/%s", parent_path, action_name); + menuitem = gtk_ui_manager_get_widget (window->details->ui_manager, + path); + gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (menuitem), + TRUE); + g_object_unref (pixbuf); + g_free (path); g_free (name); } |