]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
GObject: Do not register nullable struct properties with GObject
authorJürg Billeter <j@bitron.ch>
Sat, 19 Sep 2009 11:32:56 +0000 (13:32 +0200)
committerJürg Billeter <j@bitron.ch>
Sat, 19 Sep 2009 11:33:56 +0000 (13:33 +0200)
Fixes part of bug 595587.

codegen/valagobjectmodule.vala

index 467ff19a21769dd12750e841cb9c009cdcd7ee0b..616090127d5b9421edaccb9adbf70c8306d6118f 100644 (file)
@@ -696,7 +696,7 @@ internal class Vala.GObjectModule : GTypeModule {
                }
 
                var st = prop.property_type.data_type as Struct;
-               if (st != null && !st.has_type_id) {
+               if (st != null && (!st.has_type_id || prop.property_type.nullable)) {
                        return false;
                }