** Changed in: gtk+3.0 (Ubuntu)
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gtk+3.0 in Ubuntu.
https://bugs.launchpad.net/bugs/1039476
Title:
gtk_menu_new_from_model doesn't support custom menu items
Status in “gtk+3.0” package in Ubuntu:
Fix Released
Bug description:
indicator-messages is the first indicator that uses GMenuModel instead
of Dbusmenu to send its menus to the panel. Its panel plugin uses
gtk_menu_new_from_model to create a GtkMenu widget from a GMenuModel.
Most of the menu items in the messaging menu are custom widgets (to
show icons, message counts, and the application-is-running triangles).
However, gtk_menu_new_from_model always creates GtkCheckMenuItems.
The attached patch solves this problem by introducing a new menu item
attribute ("x-canonical-type"). The value of this attribute should be
a valid GType name (as passed to g_type_from_name). An instance of
this type is created to represent the menu item if the type is a
subclass of GtkMenuItem and it has these two properties:
- "menu-item": a GMenuItem from which to build the item
- "action-group": a GActionGroup which contains the action for this menu
item
indicator-messages already depends on this patch and is a first "test-
case" for this API.
The patch doesn't introduce new public functions. "x-canonical-type"
should be considered private for now.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gtk+3.0/+bug/1039476/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp