summaryrefslogtreecommitdiff
path: root/gnome-settings-daemon
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2010-11-16 15:09:45 +0000
committerBastien Nocera <hadess@hadess.net>2010-11-16 15:09:45 +0000
commitfea948a5c3348badf613658f8a3527a1107d392e (patch)
treeb4afd97d11ff99c1f01a39b418e30d28daa9621b /gnome-settings-daemon
parentb4d9465c56cda0661e0bf2a16068855516a64fb4 (diff)
downloadgnome-settings-daemon-fea948a5c3348badf613658f8a3527a1107d392e.tar.gz
daemon: Fix build without libnotify present
It's optional in the configure, so it should be optional in main. https://bugzilla.gnome.org/show_bug.cgi?id=634939
Diffstat (limited to 'gnome-settings-daemon')
-rw-r--r--gnome-settings-daemon/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnome-settings-daemon/main.c b/gnome-settings-daemon/main.c
index a6bc26c2..f1d3ce09 100644
--- a/gnome-settings-daemon/main.c
+++ b/gnome-settings-daemon/main.c
@@ -32,7 +32,10 @@
#include <glib/gstdio.h>
#include <gtk/gtk.h>
#include <gio/gio.h>
+
+#ifdef HAVE_LIBNOTIFY
#include <libnotify/notify.h>
+#endif /* HAVE_LIBNOTIFY */
#include "gnome-settings-manager.h"
#include "gnome-settings-profile.h"
@@ -271,7 +274,9 @@ main (int argc, char *argv[])
g_log_set_default_handler (gsd_log_default_handler, NULL);
+#ifdef HAVE_LIBNOTIFY
notify_init ("gnome-settings-daemon");
+#endif /* HAVE_LIBNOTIFY */
bus_register ();