summaryrefslogtreecommitdiff
path: root/src/mate-screensaver-gl-helper.c
diff options
context:
space:
mode:
authorAlexei Sorokin <[email protected]>2017-01-17 00:10:40 +0300
committerAlexei Sorokin <[email protected]>2017-01-17 00:10:40 +0300
commit5d4416aa5853de486e62ca97207ee1da4b35b199 (patch)
tree41a3450d67f77f98b4b70392eec923ea54013cc0 /src/mate-screensaver-gl-helper.c
parent6672c9811a6c6fe76810d2c66c69c4727910d91d (diff)
downloadmate-screensaver-5d4416aa5853de486e62ca97207ee1da4b35b199.tar.bz2
mate-screensaver-5d4416aa5853de486e62ca97207ee1da4b35b199.tar.xz
GTK+3.22: fix some GdkScreen related deprecations
Diffstat (limited to 'src/mate-screensaver-gl-helper.c')
-rw-r--r--src/mate-screensaver-gl-helper.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mate-screensaver-gl-helper.c b/src/mate-screensaver-gl-helper.c
index acf23ef..472aefd 100644
--- a/src/mate-screensaver-gl-helper.c
+++ b/src/mate-screensaver-gl-helper.c
@@ -35,7 +35,6 @@ main (int argc,
char **argv)
{
GdkDisplay *display;
- GdkScreen *screen;
GdkVisual *visual;
Visual *xvisual;
GError *error = NULL;
@@ -64,8 +63,7 @@ main (int argc,
}
display = gdk_display_get_default ();
- screen = gdk_display_get_default_screen (display);
- visual = gs_visual_gl_get_best_for_screen (screen);
+ visual = gs_visual_gl_get_best_for_display (display);
if (visual != NULL)
{