summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-autorun.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-05-05 18:21:48 +0200
committerlukefromdc <[email protected]>2018-05-07 02:36:35 -0400
commitded490e1bc432210e6006e94273cc160a0af8e75 (patch)
treed340ca52a45a7f955d4b5f499ab3620a007c2386 /libcaja-private/caja-autorun.c
parentfc70465e4605d81bab8c5dfb83891efff46bf1f2 (diff)
downloadcaja-ded490e1bc432210e6006e94273cc160a0af8e75.tar.bz2
caja-ded490e1bc432210e6006e94273cc160a0af8e75.tar.xz
libcaja-private: replace deprecated gdk_error_trap functions
replace gdk_error_trap_push gdk_error_trap_pop_ignored
Diffstat (limited to 'libcaja-private/caja-autorun.c')
-rw-r--r--libcaja-private/caja-autorun.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libcaja-private/caja-autorun.c b/libcaja-private/caja-autorun.c
index 94a23400..23a153dd 100644
--- a/libcaja-private/caja-autorun.c
+++ b/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)
{