summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-08-13 13:29:06 +0200
committerraveit65 <[email protected]>2018-08-22 15:10:21 +0200
commitba96676d13e442cb585925c5e19b39bcebe88d5a (patch)
treeec04b3be15e9aca053b5fc12af4d757d0fd15ac6
parent1bbadd3d9aec6b361421ae5fee1a89331d68251b (diff)
downloadmate-screensaver-ba96676d13e442cb585925c5e19b39bcebe88d5a.tar.bz2
mate-screensaver-ba96676d13e442cb585925c5e19b39bcebe88d5a.tar.xz
gs-visual-gl: replace deprecated gdk_error_trap_push/pop
-rw-r--r--src/gs-visual-gl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gs-visual-gl.c b/src/gs-visual-gl.c
index 80bf8bb..2ba8fc3 100644
--- a/src/gs-visual-gl.c
+++ b/src/gs-visual-gl.c
@@ -79,7 +79,7 @@ gs_visual_gl_get_best_for_display (GdkDisplay *display)
screen = gdk_display_get_default_screen (display);
screen_num = GDK_SCREEN_XNUMBER (screen);
- gdk_error_trap_push ();
+ gdk_x11_display_error_trap_push (display);
visual = NULL;
for (i = 0; i < G_N_ELEMENTS (attrs); i++)
@@ -105,7 +105,7 @@ gs_visual_gl_get_best_for_display (GdkDisplay *display)
}
}
- gdk_error_trap_pop_ignored ();
+ gdk_x11_display_error_trap_pop_ignored (display);
#else
visual = NULL;
#endif /* HAVE_LIBGL */