[gimp/gimp-2-8] Bug 773268 - Avoid D-Bus error message when built without D-Bus support



commit 81fe29ebcef6d113ed84aaa8062b6e2b4a2b214b
Author: Ingo Brückl <ib wupperonline de>
Date:   Fri Oct 21 00:24:13 2016 +0200

    Bug 773268 - Avoid D-Bus error message when built without D-Bus support

 app/unique.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/app/unique.c b/app/unique.c
index f7ef455..062c759 100644
--- a/app/unique.c
+++ b/app/unique.c
@@ -86,6 +86,7 @@ gimp_unique_dbus_open (const gchar **filenames,
                       gboolean      as_new)
 {
 #ifndef GIMP_CONSOLE_COMPILATION
+#if HAVE_DBUS_GLIB
 
 /*  for the DBus service names  */
 #include "gui/gimpdbusservice.h"
@@ -171,7 +172,8 @@ gimp_unique_dbus_open (const gchar **filenames,
       g_printerr ("%s\n", error->message);
       g_clear_error (&error);
     }
-#endif
+#endif /* GIMP_CONSOLE_COMPILATION */
+#endif /* HAVE_DBUS_GLIB */
 
   return FALSE;
 }


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