From b798978db017df8d08e35a38cfa1e88fe3890f90 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 30 Aug 2010 14:34:16 -0500 Subject: Building us a dbus interface --- src/datetime-service.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/datetime-service.c b/src/datetime-service.c index 2137065..e6a5fc3 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -28,12 +28,14 @@ with this program. If not, see . #include #include +#include "datetime-interface.h" #include "dbus-shared.h" static IndicatorService * service = NULL; static GMainLoop * mainloop = NULL; static DbusmenuServer * server = NULL; static DbusmenuMenuitem * root = NULL; +static DatetimeInterface * dbus = NULL; /* Global Items */ static DbusmenuMenuitem * date = NULL; @@ -198,6 +200,8 @@ main (int argc, char ** argv) dbusmenu_server_set_root(server, root); build_menus(root); + dbus = g_object_new(DATETIME_INTERFACE_TYPE, NULL); + mainloop = g_main_loop_new(NULL, FALSE); g_main_loop_run(mainloop); -- cgit v1.2.3