[Spice-devel] [spice-gtk 2/2] Add fallback #define for GDK_IS_X11_DISPLAY
Christophe Fergeau
cfergeau at redhat.com
Fri Apr 11 01:43:36 PDT 2014
It's not available on gtk+ 2.0, and there is no substitute for it,
so it's #defined to TRUE.
---
gtk/spice-gtk-session.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gtk/spice-gtk-session.c b/gtk/spice-gtk-session.c
index fe77f47..d67e5e2 100644
--- a/gtk/spice-gtk-session.c
+++ b/gtk/spice-gtk-session.c
@@ -44,6 +44,10 @@
#define CLIPBOARD_LAST (VD_AGENT_CLIPBOARD_SELECTION_SECONDARY + 1)
+#if !GTK_CHECK_VERSION (2, 91, 0)
+#define GDK_IS_X11_DISPLAY(D) TRUE
+#endif
+
struct _SpiceGtkSessionPrivate {
SpiceSession *session;
/* Clipboard related */
--
1.9.0
More information about the Spice-devel
mailing list