aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-10-09 21:33:15 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-10-09 21:33:15 -0500
commita52e3b86ee0dbce56221d1327c6c62a6d8e163e3 (patch)
tree2c8eb7d9673683d2917989dbdb06ef91867758c3 /src/main.c
parentb6b0c140f922385d947fa12dfff179a5491a1722 (diff)
downloadayatana-indicator-datetime-a52e3b86ee0dbce56221d1327c6c62a6d8e163e3.tar.gz
ayatana-indicator-datetime-a52e3b86ee0dbce56221d1327c6c62a6d8e163e3.tar.bz2
ayatana-indicator-datetime-a52e3b86ee0dbce56221d1327c6c62a6d8e163e3.zip
preliminary implementation of snap decision
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 073c876..34e9b98 100644
--- a/src/main.c
+++ b/src/main.c
@@ -24,6 +24,7 @@
#include <glib/gi18n.h>
#include <gio/gio.h>
+#include <libnotify/notify.h>
#include "planner-eds.h"
#include "planner-mock.h"
@@ -52,6 +53,11 @@ main (int argc G_GNUC_UNUSED, char ** argv G_GNUC_UNUSED)
bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
textdomain (GETTEXT_PACKAGE);
+ /* init libnotify */
+ if (!notify_init ("indicator-datetime-service"))
+ g_critical ("libnotify initialization failed");
+
+
/* get the planner */
if (g_getenv ("INDICATOR_DATETIME_USE_FAKE_PLANNER") != NULL)
{