summaryrefslogtreecommitdiff
path: root/panels/common
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2015-01-21 13:07:45 +0100
committerRui Matos <tiagomatos@gmail.com>2015-01-21 14:26:00 +0100
commit3c41d02b09b20eba8edc23b09a9621735aaf7d50 (patch)
tree501482debe11827f16d9f178df8510eafef9b0e7 /panels/common
parent1be3811717ac3a3e8fbc4b112c4d01db3a1d150c (diff)
downloadgnome-control-center-3c41d02b09b20eba8edc23b09a9621735aaf7d50.tar.gz
common: Fix build by providing dummy header
https://bugzilla.gnome.org/show_bug.cgi?id=743266
Diffstat (limited to 'panels/common')
-rw-r--r--panels/common/Makefile.am3
-rw-r--r--panels/common/gnome-settings-bus.h12
2 files changed, 14 insertions, 1 deletions
diff --git a/panels/common/Makefile.am b/panels/common/Makefile.am
index efb070468..575fd03fd 100644
--- a/panels/common/Makefile.am
+++ b/panels/common/Makefile.am
@@ -52,7 +52,8 @@ libdevice_la_SOURCES = \
gsd-device-manager.c \
gsd-device-manager.h \
gsd-device-manager-x11.c \
- gsd-device-manager-x11.h
+ gsd-device-manager-x11.h \
+ gnome-settings-bus.h
libdevice_la_LIBADD = \
$(DEVICES_LIBS)
diff --git a/panels/common/gnome-settings-bus.h b/panels/common/gnome-settings-bus.h
new file mode 100644
index 000000000..0698f01ef
--- /dev/null
+++ b/panels/common/gnome-settings-bus.h
@@ -0,0 +1,12 @@
+/* Stub to replace gnome-settings-daemon's
+ * gnome-settings-bus.h helpers */
+
+#include <gdk/gdkx.h>
+
+#define HAVE_WAYLAND 1
+
+static inline gboolean
+gnome_settings_is_wayland (void)
+{
+ return !GDK_IS_X11_DISPLAY (gdk_display_get_default ());
+}