[vala] xcb: Fix visuals iterator methods



commit 5e0c6d094a3cc4aca1d9d90971c61faf75f93d49
Author: Robert Ancell <robert ancell canonical com>
Date:   Wed May 14 10:07:40 2014 +1200

    xcb: Fix visuals iterator methods
    
    https://bugzilla.gnome.org/show_bug.cgi?id=730090

 vapi/xcb.vapi |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/vapi/xcb.vapi b/vapi/xcb.vapi
index e66aa21..294991e 100644
--- a/vapi/xcb.vapi
+++ b/vapi/xcb.vapi
@@ -647,6 +647,7 @@ namespace Xcb {
        [CCode (cname = "xcb_depth_t", ref_function = "", unref_function = "")]
        public class Depth {
                public uint8 depth;
+               public int visuals_length ();
                public VisualTypeIterator visuals_iterator ();
        }
 
@@ -668,12 +669,13 @@ namespace Xcb {
                public void next ();
        }
 
+       [SimpleType]
        [CCode (cname = "xcb_visualtype_iterator_t", has_type_id = false)]
        public struct VisualTypeIterator {
                public unowned VisualType data;
                public int rem;
                [CCode (cname = "xcb_visualtype_next")]
-               public void next ();
+               public static void next (ref VisualTypeIterator iter);
        }
 
        [Deprecated (since = "vala-0.14", replacement = "Xcb.Connection")]


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