[gnote] Fix build with GTK+ 2.22



commit 9cd3e6f7685b2b102e450f86e71f8cd62e5bef43
Author: Aurimas Ä?ernius <aurisc4 gmail com>
Date:   Sat Oct 9 17:10:55 2010 +0300

    Fix build with GTK+ 2.22
    
    gdk_display is no longer accessible in GTK+ 2.22.

 libtomboy/tomboykeybinder.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libtomboy/tomboykeybinder.c b/libtomboy/tomboykeybinder.c
index 2718215..b86c2a2 100644
--- a/libtomboy/tomboykeybinder.c
+++ b/libtomboy/tomboykeybinder.c
@@ -313,7 +313,8 @@ tomboy_keybinder_is_modifier (guint keycode)
 	XModifierKeymap *mod_keymap;
 	gboolean retval = FALSE;
 
-	mod_keymap = XGetModifierMapping (gdk_display);
+	mod_keymap = XGetModifierMapping (
+		GDK_DISPLAY_XDISPLAY(gdk_display_get_default()));
 
 	map_size = 8 * mod_keymap->max_keypermod;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]