[PATCH] - fix for bug 161859
- From: Jamie McCracken <jamiemcc blueyonder co uk>
- To: "nautilus-list gnome org" <nautilus-list gnome org>
- Cc: Alexander Larsson <alexl redhat com>
- Subject: [PATCH] - fix for bug 161859
- Date: Thu, 16 Jun 2005 14:21:41 +0100
Attached is a fix for http://bugzilla.gnome.org/show_bug.cgi?id=161859
This really annoying bug is caused by both go menu items and bookmark
menu items having the same action name despite having different paths
(dunno if this is a bug or a feature in GtkUIManager?). This patch makes
the action name unique regardless of its path and thus prevents
GtkUIManager getting its knickers in a twist.
jamie.
Index: src/nautilus-window-menus.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-window-menus.c,v
retrieving revision 1.284
diff -u -r1.284 nautilus-window-menus.c
--- src/nautilus-window-menus.c 4 Jun 2005 15:02:02 -0000 1.284
+++ src/nautilus-window-menus.c 16 Jun 2005 13:10:53 -0000
@@ -168,7 +168,7 @@
/* Create menu item with pixbuf */
pixbuf = nautilus_bookmark_get_pixbuf (bookmark, NAUTILUS_ICON_SIZE_FOR_MENUS, FALSE);
- action_name = g_strdup_printf ("bookmark_%d", index_in_parent);
+ action_name = g_strdup_printf ("bookmark_%s_%d", parent_path, index_in_parent);
action = gtk_action_new (action_name,
display_name,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]