From a253844a712ceb8f54cb3b6fa5b090ba0a216e19 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 6 Aug 2009 12:39:59 +0100 Subject: Something global to track all the DBus stuff. --- src/status-service.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/status-service.c') 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); -- cgit v1.2.3