aboutsummaryrefslogtreecommitdiff
path: root/src/application-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-01-19 17:20:21 -0600
committerTed Gould <ted@gould.cx>2010-01-19 17:20:21 -0600
commit08fef8dc585407e88d27da07a7c6fd726303a0dd (patch)
tree1283cd17274c69ea24bf2a7e8a66aa879d95d4f0 /src/application-service.c
parent85394de1aa25fea66bbe30e3ceeafc754f2e8ff7 (diff)
downloadayatana-indicator-application-08fef8dc585407e88d27da07a7c6fd726303a0dd.tar.gz
ayatana-indicator-application-08fef8dc585407e88d27da07a7c6fd726303a0dd.tar.bz2
ayatana-indicator-application-08fef8dc585407e88d27da07a7c6fd726303a0dd.zip
Adding a _new function for the appstore and using it. It now takes the lru file.
Diffstat (limited to 'src/application-service.c')
-rw-r--r--src/application-service.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/application-service.c b/src/application-service.c
index abb86ee..ffd042e 100644
--- a/src/application-service.c
+++ b/src/application-service.c
@@ -66,7 +66,7 @@ main (int argc, char ** argv)
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);
@@ -79,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;
}