Top |
AsCategory * | as_category_new () |
const gchar * | as_category_get_id () |
void | as_category_set_id () |
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 () |
GPtrArray * | as_category_get_children () |
gboolean | as_category_has_children () |
void | as_category_add_child () |
void | as_category_remove_child () |
GPtrArray * | as_category_get_desktop_groups () |
void | as_category_add_desktop_group () |
GPtrArray * | as_category_get_components () |
void | as_category_add_component () |
gboolean | as_category_has_component () |
GPtrArray * | as_get_default_categories () |
This object represents a XDG category, as defined at: https://specifications.freedesktop.org/menu-spec/menu-spec-1.0.htmlcategory-registry
The AsCategory object does not support all aspects of a menu. Its main purpose is to be used in software-centers to group visual components (gui/web applications).
You can use as_get_default_categories
() to get a set of supported default categories.
See also: AsComponent
const gchar *
as_category_get_id (AsCategory *category
);
Get the ID of this category.
void as_category_set_id (AsCategory *category
,const gchar *id
);
Set the ID of this category.
const gchar *
as_category_get_name (AsCategory *category
);
Get the name of this category.
void as_category_set_name (AsCategory *category
,const gchar *value
);
Set the name of this category.
const gchar *
as_category_get_summary (AsCategory *category
);
Get the summary (short description) of this category.
void as_category_set_summary (AsCategory *category
,const gchar *value
);
Get the summary (short description) of this category.
const gchar *
as_category_get_icon (AsCategory *category
);
Get the stock icon name for this category.
void as_category_set_icon (AsCategory *category
,const gchar *value
);
Set the stock icon name for this category.
gboolean
as_category_has_children (AsCategory *category
);
Test for sub-categories.
void as_category_add_child (AsCategory *category
,AsCategory *subcat
);
Add a subcategory to this category.
void as_category_remove_child (AsCategory *category
,AsCategory *subcat
);
Drop a subcategory from this AsCategory.
GPtrArray *
as_category_get_desktop_groups (AsCategory *category
);
void as_category_add_desktop_group (AsCategory *category
,const gchar *group_name
);
Add a desktop-file category to this AsCategory.
GPtrArray *
as_category_get_components (AsCategory *category
);
Get list of components which have been sorted into this category.
void as_category_add_component (AsCategory *category
,AsComponent *cpt
);
Add a component to this category.
gboolean as_category_has_component (AsCategory *category
,AsComponent *cpt
);
Check if the exact AsComponent cpt
is a member of this
category already.
GPtrArray *
as_get_default_categories (gboolean with_special
);
Get a list of the default Freedesktop and AppStream categories that software components (especially GUI applications) can be sorted into in software centers.
[skip]