[gnome-flashback] common: Replace deprecated gdk_error_trap_pop
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] common: Replace deprecated gdk_error_trap_pop
- Date: Mon, 10 Sep 2018 13:09:49 +0000 (UTC)
commit 9ee0b15e9b0bb02e8a95c7d6d3de4d3ed982307d
Author: Ori Avtalion <ori avtalion name>
Date: Sat Sep 1 21:33:42 2018 +0300
common: Replace deprecated gdk_error_trap_pop
gnome-flashback/libcommon/gf-keybindings.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gnome-flashback/libcommon/gf-keybindings.c b/gnome-flashback/libcommon/gf-keybindings.c
index 8313b05..d518b1a 100644
--- a/gnome-flashback/libcommon/gf-keybindings.c
+++ b/gnome-flashback/libcommon/gf-keybindings.c
@@ -158,10 +158,12 @@ change_keygrab (GfKeybindings *keybindings,
guint keycode;
guint mask;
gint error_code;
+ GdkDisplay *display;
ignored_mask = 0;
keycode = keybinding->keycode;
mask = keybinding->mask;
+ display = gdk_display_get_default ();
if (keycode == 0)
return;
@@ -174,7 +176,7 @@ change_keygrab (GfKeybindings *keybindings,
continue;
}
- gdk_error_trap_push ();
+ gdk_x11_display_error_trap_push (display);
if (grab)
{
@@ -187,7 +189,7 @@ change_keygrab (GfKeybindings *keybindings,
keybindings->xwindow);
}
- error_code = gdk_error_trap_pop ();
+ error_code = gdk_x11_display_error_trap_pop (display);
if (error_code != 0)
{
g_debug ("Failed to grab/ ungrab key. Error code - %d", error_code);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]