summaryrefslogtreecommitdiff
path: root/src/test-fade.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2015-07-09 10:39:04 +0200
committerinfirit <[email protected]>2015-07-09 11:28:41 +0200
commit1b8f66d0f995b2f9ccf56c9ab7a27c2f68442c50 (patch)
treed191f95dc10adac55375ed5f15425fda420f3abf /src/test-fade.c
parentc1d1e089a69c5e90e8b0cf4b96335899f209e7f0 (diff)
downloadmate-screensaver-1b8f66d0f995b2f9ccf56c9ab7a27c2f68442c50.tar.bz2
mate-screensaver-1b8f66d0f995b2f9ccf56c9ab7a27c2f68442c50.tar.xz
Always use GDK_DISPLAY_XDISPLAY instead of GDK_DISPLAY
Has been in Gtk since 2.22
Diffstat (limited to 'src/test-fade.c')
-rw-r--r--src/test-fade.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/test-fade.c b/src/test-fade.c
index b906460..6a82d21 100644
--- a/src/test-fade.c
+++ b/src/test-fade.c
@@ -101,11 +101,7 @@ 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");
}
@@ -115,11 +111,7 @@ 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");
}