]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib binding: mark VariantType [Immutable]
authorRyan Lortie <desrt@desrt.ca>
Wed, 23 Mar 2011 16:07:12 +0000 (12:07 -0400)
committerRyan Lortie <desrt@desrt.ca>
Wed, 23 Mar 2011 16:13:25 +0000 (12:13 -0400)
This gets us proper behaviour with respect to functions that return
unowned VariantType (which is 'const GVariantType *' in C).

vapi/glib-2.0.vapi

index 047ac1af886290553826aec34d5a278e33ba944c..d401c58b02854aa85c6b8cccd88ce1bcb3fe4be4 100644 (file)
@@ -4292,6 +4292,7 @@ namespace GLib {
        }
 
        [Compact]
+       [Immutable]
        [CCode (copy_function = "g_variant_type_copy", free_function = "g_variant_type_free", type_id = "G_TYPE_VARIANT_TYPE")]
        public class VariantType {
                [CCode (cname = "G_VARIANT_TYPE_BOOLEAN")]