[gtk+] Make gdk build against old X headers
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Make gdk build against old X headers
- Date: Sun, 6 Jun 2010 23:41:54 +0000 (UTC)
commit 25864cf0ceddfbaf7703ecff4964f1ef708f66c7
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jun 6 19:39:12 2010 -0400
Make gdk build against old X headers
The XI.h in RHEL5 is missing some defines that are used
in the new device code.
gdk/x11/gdkdevicemanager-xi.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gdk/x11/gdkdevicemanager-xi.c b/gdk/x11/gdkdevicemanager-xi.c
index c1c3390..e11cb58 100644
--- a/gdk/x11/gdkdevicemanager-xi.c
+++ b/gdk/x11/gdkdevicemanager-xi.c
@@ -202,6 +202,12 @@ translate_class_info (GdkDevice *device,
}
}
+/* old versions of XI.h don't define these */
+#ifndef IsXExtensionKeyboard
+#define IsXExtensionKeyboard 3
+#define IsXExtensionPointer 4
+#endif
+
static GdkDevice *
create_device (GdkDeviceManager *device_manager,
GdkDisplay *display,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]