Top | ![]() |
![]() |
![]() |
![]() |
#define | AS_TYPE_MENU_PARSER |
AsMenuParser * | as_menu_parser_new () |
AsMenuParser * | as_menu_parser_new_from_file () |
GList * | as_menu_parser_parse () |
gboolean | as_menu_parser_get_update_category_data () |
void | as_menu_parser_set_update_category_data () |
GList * | as_get_system_categories () |
This object parses an XDG menu file and returns a set of AsCategory objects which can be used by software-centers to group the applications they show. By default, it loads a common set of categories from an internal menu file. A custom menu file may be specified using the alternative class constructor.
See also: AsCategory
AsMenuParser *
as_menu_parser_new_from_file (const gchar *menu_file
);
Creates a new AsMenuParser using a custom XDG menu XML file.
GList *
as_menu_parser_parse (AsMenuParser *mp
);
Parse the menu file
GList of AsCategory objects found in the menu, or NULL if there was an error.
[element-type AsCategory][transfer full]
gboolean
as_menu_parser_get_update_category_data
(AsMenuParser *mp
);
void as_menu_parser_set_update_category_data (AsMenuParser *mp
,gboolean value
);