[Xfce4-commits] [apps/xfce4-screensaver] 101/425: test-fade: Add GTK3 support

noreply at xfce.org noreply at xfce.org
Mon Oct 15 01:49:08 CEST 2018


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-screensaver.

commit 31d78b8027002647879a0c3ffd508b0c93c2202b
Author: Stefano Karapetsas <stefano at karapetsas.com>
Date:   Tue Nov 12 16:53:07 2013 +0100

    test-fade: Add GTK3 support
---
 src/test-fade.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/test-fade.c b/src/test-fade.c
index 3b10a37..b906460 100644
--- a/src/test-fade.c
+++ b/src/test-fade.c
@@ -101,7 +101,11 @@ main (int    argc,
 		exit (1);
 	}
 
+#if GTK_CHECK_VERSION (3, 0, 0)
+	if (! XQueryExtension (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), XF86_VIDMODE_NAME, &op, &event, &err))
+#else
 	if (! XQueryExtension (GDK_DISPLAY (), XF86_VIDMODE_NAME, &op, &event, &err))
+#endif
 	{
 		g_message ("no " XF86_VIDMODE_NAME " extension");
 	}
@@ -111,7 +115,11 @@ main (int    argc,
 		int major;
 		int minor;
 
+#if GTK_CHECK_VERSION (3, 0, 0)
+		if (! XF86VidModeQueryVersion (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), &major, &minor))
+#else
 		if (! XF86VidModeQueryVersion (GDK_DISPLAY (), &major, &minor))
+#endif
 		{
 			g_message ("unable to get " XF86_VIDMODE_NAME " version");
 		}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list