diff options
Diffstat (limited to 'gio/src/menumodel.ccg')
-rw-r--r-- | gio/src/menumodel.ccg | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/gio/src/menumodel.ccg b/gio/src/menumodel.ccg index 5d6612eb..48b9b2bb 100644 --- a/gio/src/menumodel.ccg +++ b/gio/src/menumodel.ccg @@ -23,26 +23,20 @@ namespace Gio { // Make sure the order here is the same order as in Gio::MenuAttribute. -static const char* const _attribute_strings[] = -{ - G_MENU_ATTRIBUTE_ACTION, - G_MENU_ATTRIBUTE_LABEL, - G_MENU_ATTRIBUTE_TARGET -}; +static const char* const _attribute_strings[] = { G_MENU_ATTRIBUTE_ACTION, G_MENU_ATTRIBUTE_LABEL, + G_MENU_ATTRIBUTE_TARGET }; -const char* giomm_get_menu_attribute(MenuAttribute attribute) +const char* +giomm_get_menu_attribute(MenuAttribute attribute) { return _attribute_strings[attribute]; } // Make sure the order here is the same order as in Gio::MenuLink. -static const char* const _link_strings[] = -{ - G_MENU_LINK_SECTION, - G_MENU_LINK_SUBMENU -}; +static const char* const _link_strings[] = { G_MENU_LINK_SECTION, G_MENU_LINK_SUBMENU }; -const char* giomm_get_menu_link(MenuLink link) +const char* +giomm_get_menu_link(MenuLink link) { return _link_strings[link]; } |