[Spice-devel] [spice-gtk 2/2] Add fallback #define for GDK_IS_X11_DISPLAY

Marc-André Lureau marcandre.lureau at gmail.com
Fri Apr 11 05:34:13 PDT 2014


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 at redhat.com>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 at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>



-- 
Marc-André Lureau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20140411/c6fac448/attachment.html>


More information about the Spice-devel mailing list