Skip to content

Commit

Permalink
gs-visual-gl: replace deprecated gdk_error_trap_push/pop
Browse files Browse the repository at this point in the history
  • Loading branch information
raveit65 committed Aug 22, 2018
1 parent 1bbadd3 commit ba96676
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gs-visual-gl.c
Expand Up @@ -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++)
Expand All @@ -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 */
Expand Down

0 comments on commit ba96676

Please sign in to comment.