Top | ![]() |
![]() |
![]() |
![]() |
AsCategory * | as_category_new () |
void | as_category_complete () |
const gchar * | as_category_get_directory () |
void | as_category_set_directory () |
const gchar * | as_category_get_name () |
void | as_category_set_name () |
const gchar * | as_category_get_summary () |
void | as_category_set_summary () |
const gchar * | as_category_get_icon () |
void | as_category_set_icon () |
gboolean | as_category_has_subcategory () |
void | as_category_add_subcategory () |
void | as_category_remove_subcategory () |
GList * | as_category_get_included () |
GList * | as_category_get_excluded () |
GList * | as_category_get_subcategories () |
gint | as_category_get_level () |
void | as_category_set_level () |
This object represents an XDG category, as defined at: http://standards.freedesktop.org/menu-spec/menu-spec-1.0.htmlcategory-registry
The AsCategory object does not support all aspects of a menu. It's main purpose is to be used in software-centers to show information about application-groups, which are use to thematically group applications.
You can use AsMenuParser to get a set of supported default categories.
See also: AsMenuParser
void
as_category_complete (AsCategory *cat
);
Update incomplete category data with information from "/usr/share/desktop-directories".
const gchar *
as_category_get_directory (AsCategory *cat
);
Get associated XDG directory name for this category, in case one exists in "/usr/share/desktop-directories/".
void as_category_set_directory (AsCategory *cat
,const gchar *value
);
Set associated XDG directory name for this category.
const gchar *
as_category_get_name (AsCategory *cat
);
Get the name of this category.
void as_category_set_name (AsCategory *cat
,const gchar *value
);
Set the name of this category.
const gchar *
as_category_get_summary (AsCategory *cat
);
Get the summary (short description) of this category.
void as_category_set_summary (AsCategory *cat
,const gchar *value
);
Get the summary (short description) of this category.
const gchar *
as_category_get_icon (AsCategory *cat
);
Get the stock icon name for this category.
void as_category_set_icon (AsCategory *cat
,const gchar *value
);
Set the stock icon name for this category.
gboolean
as_category_has_subcategory (AsCategory *cat
);
Test for sub-categories.
void as_category_add_subcategory (AsCategory *cat
,AsCategory *subcat
);
Add a subcategory to this category.
void as_category_remove_subcategory (AsCategory *cat
,AsCategory *subcat
);
Drop a subcategory from this AsCategory.