aboutsummaryrefslogtreecommitdiff
path: root/src/status-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-06 12:39:59 +0100
committerTed Gould <ted@canonical.com>2009-08-06 12:39:59 +0100
commita253844a712ceb8f54cb3b6fa5b090ba0a216e19 (patch)
tree82e6343eefe535cbab0fc48565d50504fe1b1ab3 /src/status-service.c
parentaff047a23a15219933657f85311d858d6e458870 (diff)
downloadayatana-indicator-session-a253844a712ceb8f54cb3b6fa5b090ba0a216e19.tar.gz
ayatana-indicator-session-a253844a712ceb8f54cb3b6fa5b090ba0a216e19.tar.bz2
ayatana-indicator-session-a253844a712ceb8f54cb3b6fa5b090ba0a216e19.zip
Something global to track all the DBus stuff.
Diffstat (limited to 'src/status-service.c')
-rw-r--r--src/status-service.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/status-service.c b/src/status-service.c
index b804711..1bd33e9 100644
--- a/src/status-service.c
+++ b/src/status-service.c
@@ -42,6 +42,7 @@ static DbusmenuMenuitem * root_menuitem = NULL;
static DbusmenuMenuitem * status_menuitem = NULL;
static GMainLoop * mainloop = NULL;
static gchar * whoami = "ted";
+static StatusServiceDbus * dbus_interface = NULL;
/* A fun little function to actually lock the screen. If,
that's what you want, let's do it! */
@@ -158,6 +159,8 @@ main (int argc, char ** argv)
g_idle_add(build_menu, root_menuitem);
+ dbus_interface = g_object_new(STATUS_SERVICE_DBUS_TYPE, NULL);
+
mainloop = g_main_loop_new(NULL, FALSE);
g_main_loop_run(mainloop);