]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gobject-2.0: fix binding for ObjectClass.list_properties
authorMark Lee <marklee@src.gnome.org>
Mon, 17 Aug 2009 16:07:26 +0000 (09:07 -0700)
committerJaap A. Haitsma <jaap@haitsma.org>
Mon, 17 Aug 2009 18:57:08 +0000 (20:57 +0200)
The array length type for the return value of
g_object_class_list_properties() is guint, not int.

Fixes GNOME Bug #592108.

vapi/gobject-2.0.vapi

index 3b3ebb8f015a7f2c9d461bb184b7a82595c8deca..09b0e9694c1ca9fa1b9b49ce5df185796ef6b55f 100644 (file)
@@ -159,6 +159,7 @@ namespace GLib {
        [CCode (lower_case_csuffix = "object_class")]
        public class ObjectClass : TypeClass {
                public weak ParamSpec? find_property (string property_name);
+               [CCode (array_length_type = "guint")]
                public weak ParamSpec[] list_properties ();
                public void install_property (uint property_id, ParamSpec pspec);
        }