]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gobject-2.0: Set default_value{,_on_error} for GType
authorSergey Bugaev <bugaevc@gmail.com>
Mon, 28 Apr 2025 07:34:55 +0000 (10:34 +0300)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 11 May 2025 20:04:52 +0000 (22:04 +0200)
vapi/gobject-2.0.vapi

index ebb7398488a91779a5d575bd1abb454718b9ea52..865b30bc0928634fe4fb558d199aa12bd2f74381 100644 (file)
@@ -651,7 +651,7 @@ namespace GLib {
                [CCode (array_length_cname = "n_params", array_length_type = "guint")]
                public weak GLib.Type[] param_types;
        }
-       [CCode (cheader_filename = "glib-object.h", get_value_function = "g_value_get_gtype", marshaller_type_name = "GTYPE", set_value_function = "g_value_set_gtype", type_id = "G_TYPE_GTYPE")]
+       [CCode (cheader_filename = "glib-object.h", get_value_function = "g_value_get_gtype", marshaller_type_name = "GTYPE", set_value_function = "g_value_set_gtype", type_id = "G_TYPE_GTYPE", default_value = "G_TYPE_NONE", default_value_on_error = "G_TYPE_INVALID")]
        [GIR (fullname = "GType")]
        public struct Type : ulong {
                public const GLib.Type BOOLEAN;