GMenu: add g_menu_item_set_icon() convenience
authorRyan Lortie <desrt@desrt.ca>
Sat, 20 Apr 2013 22:55:03 +0000 (18:55 -0400)
committerRyan Lortie <desrt@desrt.ca>
Mon, 22 Apr 2013 20:12:42 +0000 (16:12 -0400)
commitc1c1b33f883d6afd2e27bb2506ab6490ed916052
tree6c297c94ff3ae98daaf0cc568d357b9f606b8fa8
parent63a0cc3f8d97da612d445babfe367fb3d603e658
GMenu: add g_menu_item_set_icon() convenience

This function takes a GIcon, serialises it and sets the resulting
GVariant as the "icon" attribute on the menu item.  We will need to add
a patch to Gtk to actually consume this icon.

Also add G_MENU_ATTRIBUTE_ICON.

https://bugzilla.gnome.org/show_bug.cgi?id=688820
docs/reference/gio/gio-sections.txt
gio/gmenu.c
gio/gmenu.h
gio/gmenumodel.h