[vala] GObject: Do not register nullable struct properties with GObject
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] GObject: Do not register nullable struct properties with GObject
- Date: Sat, 19 Sep 2009 11:58:55 +0000 (UTC)
commit 865d6b1c699d12009535ab335546af1e68805187
Author: Jürg Billeter <j bitron ch>
Date: Sat Sep 19 13:32:56 2009 +0200
GObject: Do not register nullable struct properties with GObject
Fixes part of bug 595587.
codegen/valagobjectmodule.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valagobjectmodule.vala b/codegen/valagobjectmodule.vala
index 467ff19..6160901 100644
--- a/codegen/valagobjectmodule.vala
+++ b/codegen/valagobjectmodule.vala
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]