Merge lp://staging/~larsu/gtk/custom-menu-items-v2 into lp://staging/~ubuntu-desktop/gtk/ubuntugtk3
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 269 | ||||
Proposed branch: | lp://staging/~larsu/gtk/custom-menu-items-v2 | ||||
Merge into: | lp://staging/~ubuntu-desktop/gtk/ubuntugtk3 | ||||
Diff against target: |
439 lines (+335/-62) 1 file modified
debian/patches/ubuntu_gtk_custom_menu_items.patch (+335/-62) |
||||
To merge this branch: | bzr merge lp://staging/~larsu/gtk/custom-menu-items-v2 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sebastien Bacher | Approve | ||
Review via email:
|
Description of the change
Update custom menu items patch
The previous version simply interpreted the value of the "x-canonical-type"
attribute on a menu item as a GType string and instantiated an instance of
that. We need something more sophisticated now, because GMenuModel is used by
things that don't integrate with glib's type system. (In particular, the next
unity will be a consumer of the indicator services.)
This new patch adds an extension point to gtk. Libraries or programs can
register to implement this extension point and supply an object with the
GtkMenuItemFactory interface. Gtk will ask those factories to create menu items
whenever it stumbles on a "x-canonical-type" attribute.
The patch also needs to update gtk/gtk.symbols with the new functions in order to build the packaging properly.
See:
5935 --- expected-abi 2013-05-27 11:42:17.616520780 -0400 mode_get_ type gtk_menu_ shell_activate_ first gtk_menu_ shell_activate_ mnemonic menu_item_ factory_ create_ menu_item menu_item_ factory_ get_type menu_proxy_ activate_ menu menu_proxy_ get menu_proxy_ get_type
5936 +++ actual-abi 2013-05-27 11:42:17.652520780 -0400
5937 @@ -4022,6 +4022,8 @@
5938 gtk_wrap_
5939 ubuntu_
5940 ubuntu_
5941 +ubuntu_
5942 +ubuntu_
5943 ubuntu_
5944 ubuntu_
5945 ubuntu_
5946 FAIL: abicheck.sh