aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-08-30 14:34:16 -0500
committerTed Gould <ted@gould.cx>2010-08-30 14:34:16 -0500
commitb798978db017df8d08e35a38cfa1e88fe3890f90 (patch)
tree44283181b65670548bcd37c5069ab48e61b5153e /src
parentffe6f9fb45bf8ab898246dc79cfc2e09463ea6de (diff)
downloadayatana-indicator-datetime-b798978db017df8d08e35a38cfa1e88fe3890f90.tar.gz
ayatana-indicator-datetime-b798978db017df8d08e35a38cfa1e88fe3890f90.tar.bz2
ayatana-indicator-datetime-b798978db017df8d08e35a38cfa1e88fe3890f90.zip
Building us a dbus interface
Diffstat (limited to 'src')
-rw-r--r--src/datetime-service.c4
1 files changed, 4 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>.
#include <libdbusmenu-glib/client.h>
#include <libdbusmenu-glib/menuitem.h>
+#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);