diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2010-12-08 04:27:50 -0500 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2010-12-08 04:27:50 -0500 |
commit | be69a42947c59dc9a047e3cb304e858db669bb95 (patch) | |
tree | c3b66304300acb67f41ed8dd931df52a80c05560 /src/application-service-appstore.c | |
parent | 853fe81d0bab3ba0011a6759026223e96013a762 (diff) | |
parent | c05b64af5fc28789f404629d64a1ade4d6c6da34 (diff) | |
download | libayatana-appindicator-be69a42947c59dc9a047e3cb304e858db669bb95.tar.gz libayatana-appindicator-be69a42947c59dc9a047e3cb304e858db669bb95.tar.bz2 libayatana-appindicator-be69a42947c59dc9a047e3cb304e858db669bb95.zip |
* New upstream release.
* A race fix on the dbus name (LP: #526499)
* Fixing the Watcher Interface
* Fixes to build with GTK 2/3
* Fixes to build with valac-0.12
* debian/control
- Changed the valac build depends to valac-0.12
* debian/python-appindicator.install
- Make sure python2.6 and python2.7 files get included
* debian/rules
- Fix builds for multiple python versions
- disable parallel builds, it breaks the mono binding generation
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 * |