diff options
author | Ryan Lortie <desrt@desrt.ca> | 2013-04-20 18:55:03 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2013-04-22 16:12:42 -0400 |
commit | c1c1b33f883d6afd2e27bb2506ab6490ed916052 (patch) | |
tree | 6c297c94ff3ae98daaf0cc568d357b9f606b8fa8 /docs | |
parent | 63a0cc3f8d97da612d445babfe367fb3d603e658 (diff) | |
download | glib-c1c1b33f883d6afd2e27bb2506ab6490ed916052.tar.gz glib-c1c1b33f883d6afd2e27bb2506ab6490ed916052.tar.bz2 glib-c1c1b33f883d6afd2e27bb2506ab6490ed916052.zip |
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
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/gio/gio-sections.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/reference/gio/gio-sections.txt b/docs/reference/gio/gio-sections.txt index bac8f82a1..4cf6d2382 100644 --- a/docs/reference/gio/gio-sections.txt +++ b/docs/reference/gio/gio-sections.txt @@ -3800,6 +3800,7 @@ g_menu_item_new_from_model <SUBSECTION> g_menu_item_set_label +g_menu_item_set_icon g_menu_item_set_action_and_target_value g_menu_item_set_action_and_target g_menu_item_set_detailed_action @@ -3836,8 +3837,9 @@ g_menu_model_get_n_items <SUBSECTION> G_MENU_ATTRIBUTE_ACTION -G_MENU_ATTRIBUTE_LABEL G_MENU_ATTRIBUTE_TARGET +G_MENU_ATTRIBUTE_LABEL +G_MENU_ATTRIBUTE_ICON G_MENU_LINK_SECTION G_MENU_LINK_SUBMENU |