aboutsummaryrefslogtreecommitdiff
path: root/src/application-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-12-08 16:02:08 -0600
committerTed Gould <ted@gould.cx>2010-12-08 16:02:08 -0600
commit67140a70be29d91ccfca36095b6d393acfbd901a (patch)
treeee4b8652ce2d85c8dd246f184c15a2a0c239412b /src/application-service.c
parenta413ebac8c43f24d72cfeb983170204418201b58 (diff)
parent6698a1a3c73d1a4131d40eafbbbc38b6e946dbda (diff)
downloadlibayatana-appindicator-67140a70be29d91ccfca36095b6d393acfbd901a.tar.gz
libayatana-appindicator-67140a70be29d91ccfca36095b6d393acfbd901a.tar.bz2
libayatana-appindicator-67140a70be29d91ccfca36095b6d393acfbd901a.zip
Import upstream version 0.2.91
Diffstat (limited to 'src/application-service.c')
-rw-r--r--src/application-service.c78
1 files changed, 0 insertions, 78 deletions
diff --git a/src/application-service.c b/src/application-service.c
deleted file mode 100644
index 94e7d2e..0000000
--- a/src/application-service.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
-The core file for the service that starts up all the objects we need
-and houses our main loop.
-
-Copyright 2009 Canonical Ltd.
-
-Authors:
- Ted Gould <ted@canonical.com>
-
-This program is free software: you can redistribute it and/or modify it
-under the terms of the GNU General Public License version 3, as published
-by the Free Software Foundation.
-
-This program is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranties of
-MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
-PURPOSE. See the GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License along
-with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-
-#include "libindicator/indicator-service.h"
-#include "notification-item-client.h"
-#include "application-service-appstore.h"
-#include "application-service-watcher.h"
-#include "dbus-shared.h"
-
-/* The base main loop */
-static GMainLoop * mainloop = NULL;
-/* Where the application registry lives */
-static ApplicationServiceAppstore * appstore = NULL;
-/* Interface for applications */
-static ApplicationServiceWatcher * watcher = NULL;
-/* The service management interface */
-static IndicatorService * service = NULL;
-
-/* Recieves the disonnection signal from the service
- object and closes the mainloop. */
-static void
-service_disconnected (IndicatorService * service, gpointer data)
-{
- g_debug("Service disconnected");
- if (mainloop != NULL) {
- g_main_loop_quit(mainloop);
- }
- return;
-}
-
-/* Builds up the core objects and puts us spinning into
- a main loop. */
-int
-main (int argc, char ** argv)
-{
- g_type_init();
-
- /* Bring us up as a basic indicator service */
- service = indicator_service_new(INDICATOR_APPLICATION_DBUS_ADDR);
- g_signal_connect(G_OBJECT(service), INDICATOR_SERVICE_SIGNAL_SHUTDOWN, G_CALLBACK(service_disconnected), NULL);
-
- /* Building our app store */
- appstore = application_service_appstore_new();
-
- /* Adding a watcher for the Apps coming up */
- watcher = application_service_watcher_new(appstore);
-
- /* Building and executing our main loop */
- mainloop = g_main_loop_new(NULL, FALSE);
- g_main_loop_run(mainloop);
-
- /* Unref'ing all the objects */
- g_object_unref(G_OBJECT(watcher));
- g_object_unref(G_OBJECT(appstore));
- g_object_unref(G_OBJECT(service));
-
- return 0;
-}