aboutsummaryrefslogtreecommitdiff
path: root/src/application-service-appstore.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-10-19 20:23:53 -0400
committerTed Gould <ted@gould.cx>2010-10-19 20:23:53 -0400
commitf5573ca8adf60de99f62158d1c1cbeff5f6480f0 (patch)
tree6ab7c6427aeb190e7ad92101a4ad7388e7cc2dd6 /src/application-service-appstore.c
parent597ba2a3dec3f77be633c88905f93d7a75604397 (diff)
parent50440e60b3089bde091776f0c2551cc0182ba33c (diff)
downloadlibayatana-appindicator-f5573ca8adf60de99f62158d1c1cbeff5f6480f0.tar.gz
libayatana-appindicator-f5573ca8adf60de99f62158d1c1cbeff5f6480f0.tar.bz2
libayatana-appindicator-f5573ca8adf60de99f62158d1c1cbeff5f6480f0.zip
* Upstream Merge
* Fixing the Watcher Interface
Diffstat (limited to 'src/application-service-appstore.c')
-rw-r--r--src/application-service-appstore.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c
index 46118bb..e3befff 100644
--- a/src/application-service-appstore.c
+++ b/src/application-service-appstore.c
@@ -1022,6 +1022,24 @@ application_service_appstore_application_remove (ApplicationServiceAppstore * ap
return;
}
+gchar**
+application_service_appstore_application_get_list (ApplicationServiceAppstore * appstore)
+{
+ ApplicationServiceAppstorePrivate * priv = appstore->priv;
+ gchar ** out;
+ gchar ** outpntr;
+ GList * listpntr;
+
+ out = g_new(gchar*, g_list_length(priv->applications) + 1);
+
+ for (listpntr = priv->applications, outpntr = out; listpntr != NULL; listpntr = g_list_next(listpntr), ++outpntr) {
+ Application * app = (Application *)listpntr->data;
+ *outpntr = g_strdup_printf("%s%s", app->dbus_name, app->dbus_object);
+ }
+ *outpntr = 0;
+ return out;
+}
+
/* Creates a basic appstore object and attaches the
LRU file object to it. */
ApplicationServiceAppstore *