[gnome-settings-daemon] daemon: Fix build without libnotify present



commit fea948a5c3348badf613658f8a3527a1107d392e
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Nov 16 15:09:45 2010 +0000

    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

 gnome-settings-daemon/main.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gnome-settings-daemon/main.c b/gnome-settings-daemon/main.c
index a6bc26c..f1d3ce0 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 ();
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]