aboutsummaryrefslogtreecommitdiff
path: root/src/application-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-01-21 14:10:45 -0600
committerTed Gould <ted@gould.cx>2010-01-21 14:10:45 -0600
commit1650aa3b93d3d745edc3c98e8ec6ea06cd607abd (patch)
tree279bd324a7bd93f41dd5c45c47f10bb8c83aac7e /src/application-service.c
parent2062afe66d50fc10ff839ab7a0d127f5eaaa9197 (diff)
parent1f9ee733a54090699c731a15b5474cbe0a376336 (diff)
downloadayatana-indicator-application-1650aa3b93d3d745edc3c98e8ec6ea06cd607abd.tar.gz
ayatana-indicator-application-1650aa3b93d3d745edc3c98e8ec6ea06cd607abd.tar.bz2
ayatana-indicator-application-1650aa3b93d3d745edc3c98e8ec6ea06cd607abd.zip
* Upstream merge
* Adding in a file to position the indicators * debian/control: Adding dependency for json-glib to build.
Diffstat (limited to 'src/application-service.c')
-rw-r--r--src/application-service.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/application-service.c b/src/application-service.c
index 351e9aa..ffd042e 100644
--- a/src/application-service.c
+++ b/src/application-service.c
@@ -25,6 +25,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include "notification-item-client.h"
#include "application-service-appstore.h"
#include "application-service-watcher.h"
+#include "application-service-lru-file.h"
#include "dbus-shared.h"
/* The base main loop */
@@ -35,6 +36,8 @@ static ApplicationServiceAppstore * appstore = NULL;
static ApplicationServiceWatcher * watcher = NULL;
/* The service management interface */
static IndicatorService * service = NULL;
+/* The LRU file interface */
+static AppLruFile * lrufile = NULL;
/* Recieves the disonnection signal from the service
object and closes the mainloop. */
@@ -59,8 +62,11 @@ main (int argc, char ** argv)
service = indicator_service_new(INDICATOR_APPLICATION_DBUS_ADDR);
g_signal_connect(G_OBJECT(service), INDICATOR_SERVICE_SIGNAL_SHUTDOWN, G_CALLBACK(service_disconnected), NULL);
+ /* Start up the LRU file reading */
+ lrufile = app_lru_file_new();
+
/* Building our app store */
- appstore = APPLICATION_SERVICE_APPSTORE(g_object_new(APPLICATION_SERVICE_APPSTORE_TYPE, NULL));
+ appstore = application_service_appstore_new(lrufile);
/* Adding a watcher for the Apps coming up */
watcher = application_service_watcher_new(appstore);
@@ -73,6 +79,7 @@ main (int argc, char ** argv)
g_object_unref(G_OBJECT(watcher));
g_object_unref(G_OBJECT(appstore));
g_object_unref(G_OBJECT(service));
+ g_object_unref(G_OBJECT(lrufile));
return 0;
}