Skip to content
Permalink
Browse files
libcaja-private: replace deprecated gdk_error_trap functions
replace
gdk_error_trap_push
gdk_error_trap_pop_ignored
  • Loading branch information
raveit65 authored and lukefromdc committed May 7, 2018
1 parent fc70465 commit ded490e1bc432210e6006e94273cc160a0af8e75
Showing with 6 additions and 4 deletions.
  1. +6 −4 libcaja-private/caja-autorun.c
@@ -753,15 +753,17 @@ static gboolean
is_shift_pressed (void)
{
gboolean ret;
GdkDisplay *display;
XkbStateRec state;
Bool status;

ret = FALSE;

gdk_error_trap_push ();
status = XkbGetState (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
XkbUseCoreKbd, &state);
gdk_error_trap_pop_ignored ();
display = gdk_display_get_default ();
gdk_x11_display_error_trap_push (display);
status = XkbGetState (GDK_DISPLAY_XDISPLAY (display),
XkbUseCoreKbd, &state);
gdk_x11_display_error_trap_pop_ignored (display);

if (status == Success)
{

0 comments on commit ded490e

Please sign in to comment.