[gtk-vnc] Add compat macro for GDK_DISPLAY
- From: Daniel P. Berrange <dberrange src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-vnc] Add compat macro for GDK_DISPLAY
- Date: Thu, 28 Oct 2010 15:41:24 +0000 (UTC)
commit d196744c2265e049cd01062e62919e72300501f9
Author: Daniel P. Berrange <berrange redhat com>
Date: Thu Oct 28 14:16:35 2010 +0100
Add compat macro for GDK_DISPLAY
The GDK_DISPLAY macro is removed in Gtk3, add a compatibility
macro to allow build with Gtk2 and Gtk3
* src/vncdisplaykeymap.c: Add GDK_DISPLAY compat
src/vncdisplaykeymap.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/vncdisplaykeymap.c b/src/vncdisplaykeymap.c
index 748c3e6..4ad4732 100644
--- a/src/vncdisplaykeymap.c
+++ b/src/vncdisplaykeymap.c
@@ -69,6 +69,10 @@ static unsigned int ref_count_for_untranslated_keys = 0;
/* Xorg Cygwin aka XWin (offset + mangled XT keycodes) */
#include "vncdisplaykeymap_xorgxwin2rfb.c"
+#ifndef GDK_DISPLAY
+#define GDK_DISPLAY() GDK_DISPLAY_XDISPLAY(gdk_display_get_default())
+#endif
+
#define STRPREFIX(a,b) (strncmp((a),(b),strlen((b))) == 0)
static gboolean check_for_xwin(void)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]