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
This commit is contained in:
Lars Uebernickel 2013-11-12 12:08:57 +01:00 committed by Ryan Lortie
parent 4e8fa55827
commit 255c3a081e

View File

@ -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);