[gtk+/wip/chergert/quartz-frame-clock: 1/2] build: only compile plug/socket when available
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/chergert/quartz-frame-clock: 1/2] build: only compile plug/socket when available
- Date: Fri, 4 Sep 2015 23:38:40 +0000 (UTC)
commit cf8e9886a53412c5a3366bacb0f426f51a123573
Author: Christian Hergert <christian hergert me>
Date: Fri Sep 4 14:06:22 2015 -0700
build: only compile plug/socket when available
Plug and Socket require X11 windowing. Often times this is compiled
on systems with both wayland and x11, but not always. Quartz is an
example where it is usually not compiled.
testsuite/gtk/notify.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/testsuite/gtk/notify.c b/testsuite/gtk/notify.c
index 91492cc..505c066 100644
--- a/testsuite/gtk/notify.c
+++ b/testsuite/gtk/notify.c
@@ -417,11 +417,10 @@ test_type (gconstpointer data)
/* Backend-specific */
#ifdef GDK_WINDOWING_X11
if (GDK_IS_X11_DISPLAY (gdk_display_get_default ())) ;
- else
-#endif
- if (g_type_is_a (type, GTK_TYPE_PLUG) ||
- g_type_is_a (type, GTK_TYPE_SOCKET))
+ else if (g_type_is_a (type, GTK_TYPE_PLUG) ||
+ g_type_is_a (type, GTK_TYPE_SOCKET))
return;
+#endif
#ifdef GDK_WINDOWING_WAYLAND
if (GDK_IS_WAYLAND_DISPLAY (gdk_display_get_default ()))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]