Re: Building gtk+-3.2.3 on natty
- To: john beritz <jberitz@xxxxxxxxx>
- Subject: Re: Building gtk+-3.2.3 on natty
- From: Patrick Welche <prlw1@xxxxxxxxx>
- Date: Fri, 6 Jan 2012 16:44:17 +0000
- Cc: gtk-list@xxxxxxxxx
- In-reply-to: <CAKpA-AMK7UDXsYYdEjq0KLRsZH3mzALSm+hn7iRVZpUrmS60Ag@mail.gmail.com>
- References: <CAKpA-ANm2UzNBCzv=DTuCsUVgeGSGa+=eDdx0TBSd7Jk=bsAOw@mail.gmail.com> <20120103182659.GD29726@mrao.cam.ac.uk> <CAKpA-AMK7UDXsYYdEjq0KLRsZH3mzALSm+hn7iRVZpUrmS60Ag@mail.gmail.com>
- User-agent: Mutt/1.5.20 (2009-06-14)
On Wed, Jan 04, 2012 at 09:58:23PM -0800, john beritz wrote:
> gdkwindow-x11.c: In function '_gdk_x11_moveresize_handle_event':
> gdkwindow-x11.c:4301:9: error: 'XIEvent' undeclared (first use in this function)
...
It seems that there is an inconsistency between #defines:
n XThe part in gdkwindow-x11.c which uses XIEvent and friends is "protected"
by HAVE_XGENERICEVENTS, i.e., XGetEventData() has been found. (Xlib.h)
XIEvent and friends are defined in <X11/extension/XInput2.h> which is
included by gdkdisplay-x11.h if XINPUT_2 is defined.
Can you look in your config.h file, and confirm that
HAVE_XGENERICEVENTS is defined but XINPUT_2 is not?
Does XInput2.h exist on your system?
Other developers: attached patch against head rather than 3.2.3
looks about right...
Cheers,
Patrick
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index 7773fd7..1f61764 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -4366,7 +4366,7 @@ _gdk_x11_moveresize_handle_event (XEvent *event)
finish_drag (mv_resize);
break;
-#ifdef HAVE_XGENERICEVENTS
+#if defined (HAVE_XGENERICEVENTS) && defined (XINPUT_2)
case GenericEvent:
{
/* we just assume this is an XI2 event */
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list
[GIMP Users]
[Yosemite News]
[Yosemite Photos]
[Gimp's Home]
[Steve's Art]