You have been subscribed to a public bug: 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. ** Affects: gtk+3.0 (Ubuntu) Importance: Wishlist Assignee: Lars Uebernickel (larsu) Status: Fix Committed -- gtk_menu_new_from_model doesn't support custom menu items https://bugs.launchpad.net/bugs/1039476 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gtk+3.0 in Ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs