Top |
Functions
GsAppList * | gs_app_list_new () |
void | gs_app_list_add () |
void | gs_app_list_add_list () |
void | gs_app_list_remove () |
GsApp * | gs_app_list_index () |
GsApp * | gs_app_list_lookup () |
guint | gs_app_list_length () |
Functions
gs_app_list_add ()
void gs_app_list_add (GsAppList *list
,GsApp *app
);
If the application does not already exist in the list then it is added, incrementing the reference count. If the application already exists then a warning is printed to the console.
Applications that have the application ID lazy-loaded will always be addded
to the list, and to clean these up the plugin loader will also call the
gs_app_list_filter_duplicates()
method when all plugins have run.
Since: 3.22
gs_app_list_add_list ()
void gs_app_list_add_list (GsAppList *list
,GsAppList *donor
);
Adds all the applications in donor
to list
.
Since: 3.22
gs_app_list_remove ()
void gs_app_list_remove (GsAppList *list
,GsApp *app
);
Removes an application from the list. If the application does not exist the request is ignored.
Since: 3.22
gs_app_list_index ()
GsApp * gs_app_list_index (GsAppList *list
,guint idx
);
Gets an application at a specific position in the list.
Since: 3.22
gs_app_list_lookup ()
GsApp * gs_app_list_lookup (GsAppList *list
,const gchar *unique_id
);
Finds the first matching application in the list using the usual wildcard rules allowed in unique_ids.
Since: 3.22