Skip to content

Commit

Permalink
libcaja-private: replace deprecated gdk_error_trap functions
Browse files Browse the repository at this point in the history
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 ded490e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions libcaja-private/caja-autorun.c
Expand Up @@ -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)
{
Expand Down

0 comments on commit ded490e

Please sign in to comment.