[vala] Fix non-GObject interface properties in GObject classes
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] Fix non-GObject interface properties in GObject classes
- Date: Mon, 27 Jul 2009 15:36:18 +0000 (UTC)
commit af12d4dcda4fb265d12b404fa28e6b5a84542117
Author: Jürg Billeter <j bitron ch>
Date: Mon Jul 27 17:34:31 2009 +0200
Fix non-GObject interface properties in GObject classes
Fixes bug 539658.
codegen/valagobjectmodule.vala | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valagobjectmodule.vala b/codegen/valagobjectmodule.vala
index 588e383..248d0fc 100644
--- a/codegen/valagobjectmodule.vala
+++ b/codegen/valagobjectmodule.vala
@@ -692,6 +692,14 @@ internal class Vala.GObjectModule : GTypeModule {
return false;
}
+ if (prop.base_interface_property != null) {
+ var iface = (Interface) prop.base_interface_property.parent_symbol;
+ if (!iface.is_subtype_of (gobject_type)) {
+ // implementing non-GObject property
+ return false;
+ }
+ }
+
return true;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]