[gnome-flashback] automount-manager: Replace deprecated gdk_error_trap_push/pop
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] automount-manager: Replace deprecated gdk_error_trap_push/pop
- Date: Mon, 10 Sep 2018 12:48:54 +0000 (UTC)
commit 08043e1013055a0ad47108c006be8ca8e37b5650
Author: Ori Avtalion <ori avtalion name>
Date: Mon Sep 10 10:45:51 2018 +0300
automount-manager: Replace deprecated gdk_error_trap_push/pop
gnome-flashback/libautomount-manager/gsd-autorun.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gnome-flashback/libautomount-manager/gsd-autorun.c
b/gnome-flashback/libautomount-manager/gsd-autorun.c
index f6dddfe..6207c50 100644
--- a/gnome-flashback/libautomount-manager/gsd-autorun.c
+++ b/gnome-flashback/libautomount-manager/gsd-autorun.c
@@ -374,15 +374,17 @@ static gboolean
is_shift_pressed (void)
{
gboolean ret;
+ GdkDisplay *display;
XkbStateRec state;
Bool status;
ret = FALSE;
+ display = gdk_display_get_default ();
- gdk_error_trap_push ();
- status = XkbGetState (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
+ gdk_x11_display_error_trap_push (display);
+ status = XkbGetState (GDK_DISPLAY_XDISPLAY (display),
XkbUseCoreKbd, &state);
- gdk_error_trap_pop_ignored ();
+ gdk_x11_display_error_trap_pop_ignored (display);
if (status == Success) {
ret = state.mods & ShiftMask;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]