diff options
author | Ted Gould <ted@gould.cx> | 2010-12-07 20:46:33 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-12-07 20:46:33 -0600 |
commit | a413ebac8c43f24d72cfeb983170204418201b58 (patch) | |
tree | 7faf4c5ad905cd493018888b7b4519a1e069406a /src/application-service-appstore.c | |
parent | f5e7b8efe61d35c65422284f49e5d01a614a9deb (diff) | |
parent | 12d94d3b9aa17214cadec6e98831356330cead51 (diff) | |
download | libayatana-appindicator-a413ebac8c43f24d72cfeb983170204418201b58.tar.gz libayatana-appindicator-a413ebac8c43f24d72cfeb983170204418201b58.tar.bz2 libayatana-appindicator-a413ebac8c43f24d72cfeb983170204418201b58.zip |
Import upstream version 0.2.90
Diffstat (limited to 'src/application-service-appstore.c')
-rw-r--r-- | src/application-service-appstore.c | 18 |
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 * |