summaryrefslogtreecommitdiff
path: root/gtk/gtkmenutracker.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-11-12 12:08:57 +0100
committerRyan Lortie <desrt@desrt.ca>2013-11-12 15:42:23 -0500
commit255c3a081e569a8b68a99a50664706a6cf47e71c (patch)
tree6a8d60f4b4326aaaffe2b380ac8e3b8f81354821 /gtk/gtkmenutracker.c
parent4e8fa558270adc644d3f1c158e176c5516395848 (diff)
downloadgtk+-255c3a081e569a8b68a99a50664706a6cf47e71c.tar.gz
GtkMenuTracker: set action namespace correctly
gtk_menu_tracker_add_items() fetched the action-namespace from the menu item, but didn't pass it into gtk_menu_tracker_section_new() when its internal namespace was still NULL. https://bugzilla.gnome.org/show_bug.cgi?id=712164
Diffstat (limited to 'gtk/gtkmenutracker.c')
-rw-r--r--gtk/gtkmenutracker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkmenutracker.c b/gtk/gtkmenutracker.c
index c9e8459cc8..6f0f4ba8db 100644
--- a/gtk/gtkmenutracker.c
+++ b/gtk/gtkmenutracker.c
@@ -290,7 +290,7 @@ gtk_menu_tracker_add_items (GtkMenuTracker *tracker,
g_free (namespace);
}
else
- subsection = gtk_menu_tracker_section_new (tracker, submenu, FALSE, offset, section->action_namespace);
+ subsection = gtk_menu_tracker_section_new (tracker, submenu, FALSE, offset, action_namespace);
*change_point = g_slist_prepend (*change_point, subsection);
g_free (action_namespace);