G_MENU_ATTRIBUTE_ACTION_NAMESPACE documentation is unclear
The documentation for G_MENU_ATTRIBUTE_ACTION_NAMESPACE
is as follows
The menu item attribute that holds the namespace for all action names in menus that are linked from this item.
This would seem to imply that it work with sub-menus but it doesn't. The implementation itself only checks for a section via G_MENU_LINK_SECTION
and not G_MENU_LINK_SUBMENU
. Ironically, the line in gtkmenutracker.c
actually uses submenu
as the variable name.
Either way I got this working for myself, but the docs should either be expanded to mention that it only works with G_MENU_LINK_SECTION
or the code should probably be updated to work with G_MENU_LINK_SUBMENU
too?