diff options
author | Ted Gould <ted@gould.cx> | 2010-10-08 15:55:30 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-10-08 15:55:30 -0600 |
commit | 50440e60b3089bde091776f0c2551cc0182ba33c (patch) | |
tree | 4bf937c24fe06ab89f5577f4dd42444877200fd3 /src/application-service-appstore.c | |
parent | fe08c86fc6b9d9d843149bf195b995d7e38a2c40 (diff) | |
parent | ea206ef1316942b005fd538dc8a251bd239291cd (diff) | |
download | libayatana-appindicator-50440e60b3089bde091776f0c2551cc0182ba33c.tar.gz libayatana-appindicator-50440e60b3089bde091776f0c2551cc0182ba33c.tar.bz2 libayatana-appindicator-50440e60b3089bde091776f0c2551cc0182ba33c.zip |
Fixing the Watcher interface
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 * |