Re: [spice-gtk 2/2] Add fallback #define for GDK_IS_X11_DISPLAY

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

 



It's also in gtk/spice-widget.c, perhaps it's time for a gtk-compat.h? there are various gtk2/3 define here and there.


On Fri, Apr 11, 2014 at 10:43 AM, Christophe Fergeau <cfergeau@xxxxxxxxxx> wrote:
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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel



--
Marc-André Lureau
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]