mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 20:46:14 +01:00
gmenu exporter: put submenus in separate groups
Keep sections in the same subscription group as the parent (since they will be needed immediately) but put submenus in a separate group.
This commit is contained in:
parent
a0a94cd6c6
commit
02b001f8f6
@ -269,7 +269,10 @@ g_menu_exporter_menu_create_links (GMenuExporterMenu *menu,
|
|||||||
GMenuExporterGroup *group;
|
GMenuExporterGroup *group;
|
||||||
GMenuExporterLink *tmp;
|
GMenuExporterLink *tmp;
|
||||||
|
|
||||||
if (0) /* [magic] */
|
/* keep sections in the same group, but create new groups
|
||||||
|
* otherwise
|
||||||
|
*/
|
||||||
|
if (!g_str_equal (name, "section"))
|
||||||
group = g_menu_exporter_create_group (g_menu_exporter_group_get_exporter (menu->group));
|
group = g_menu_exporter_create_group (g_menu_exporter_group_get_exporter (menu->group));
|
||||||
else
|
else
|
||||||
group = menu->group;
|
group = menu->group;
|
||||||
|
Loading…
Reference in New Issue
Block a user