[gobject-introspection] xlib: fix the type of XID
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] xlib: fix the type of XID
- Date: Fri, 26 Aug 2011 12:00:12 +0000 (UTC)
commit 3553cd0a4631f1b57fb608e3f3f78a1a0cfd602a
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Tue Mar 1 22:33:20 2011 +0100
xlib: fix the type of XID
XIDs are CARD32, which corresponds to guint32 on all platform, not
gulong (which is 64 bit on x86_64). Fix that, and use alias indirection
to more accurately reflect the typedefs.
https://bugzilla.gnome.org/show_bug.cgi?id=643620
gir/xlib-2.0.gir | 32 ++++++++++++++------------------
1 files changed, 14 insertions(+), 18 deletions(-)
---
diff --git a/gir/xlib-2.0.gir b/gir/xlib-2.0.gir
index eaaba02..b4c8b47 100644
--- a/gir/xlib-2.0.gir
+++ b/gir/xlib-2.0.gir
@@ -6,48 +6,44 @@
c:identifier-prefixes=""
c:symbol-prefixes="X">
<alias name="Atom" c:type="Atom">
- <type name="gulong" c:type="gulong"/>
+ <type name="ID" c:type="XID"/>
</alias>
<alias name="Colormap" c:type="Colormap">
- <type name="gulong" c:type="gulong"/>
+ <type name="ID" c:type="XID"/>
</alias>
<alias name="Cursor" c:type="Cursor">
- <type name="gulong" c:type="gulong"/>
+ <type name="ID" c:type="XID"/>
</alias>
<record name="Display" c:type="Display"/>
<alias name="Drawable" c:type="Drawable">
- <type name="gulong" c:type="gulong"/>
- </alias>
- <alias name="GC" c:type="GC">
- <type name="gpointer" c:type="gpointer"/>
+ <type name="ID" c:type="XID"/>
</alias>
+ <record name="GC" c:type="GC"/>
<alias name="KeyCode" c:type="KeyCode">
- <type name="guint8" c:type="guint8"/>
+ <type name="guchar" c:type="unsigned char"/>
</alias>
<alias name="KeySym" c:type="KeySym">
- <type name="gulong" c:type="gulong"/>
- </alias>
- <alias name="Picture" c:type="Picture">
- <type name="gulong" c:type="gulong"/>
+ <type name="ID" c:type="XID"/>
</alias>
+ <record name="Picture" c:type="Picture"/>
<record name="Screen" c:type="Screen"/>
<alias name="Time" c:type="Time">
- <type name="gulong" c:type="gulong"/>
+ <type name="guint32" c:type="CARD32"/>
</alias>
<record name="Visual" c:type="Visual"/>
<alias name="VisualID" c:type="VisualID">
- <type name="gulong" c:type="gulong"/>
+ <type name="ID" c:type="XID"/>
</alias>
<alias name="Window" c:type="Window">
- <type name="gulong" c:type="gulong"/>
+ <type name="ID" c:type="XID"/>
</alias>
<union name="XEvent" c:type="XEvent"/>
<record name="XConfigureEvent" c:type="XConfigureEvent"/>
- <alias name="XID" c:type="XID">
- <type name="gulong" c:type="gulong"/>
+ <alias name="ID" c:type="XID">
+ <type name="guint32" c:type="CARD32"/>
</alias>
<alias name="Pixmap" c:type="Pixmap">
- <type name="gulong" c:type="gulong"/>
+ <type name="ID" c:type="XID"/>
</alias>
<record name="XImage" c:type="XImage"/>
<record name="XFontStruct" c:type="XFontStruct"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]