Skip to content
Permalink
Browse files

gs-visual-gl: replace deprecated gdk_error_trap_push/pop

  • Loading branch information...
raveit65 committed Aug 13, 2018
1 parent 1bbadd3 commit ba96676d13e442cb585925c5e19b39bcebe88d5a
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 */

0 comments on commit ba96676

Please sign in to comment.
You can’t perform that action at this time.