[vala/switch-to-gir-gio: 4/35] girparser: Don't add NoAccessorMethod if there is a setter
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/switch-to-gir-gio: 4/35] girparser: Don't add NoAccessorMethod if there is a setter
- Date: Thu, 30 Dec 2010 11:41:59 +0000 (UTC)
commit 7411783e733b89033998837dcb581fe71d4d6204
Author: Luca Bruno <lucabru src gnome org>
Date: Tue Nov 9 11:57:41 2010 +0100
girparser: Don't add NoAccessorMethod if there is a setter
vala/valagirparser.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 1c96ee7..2a1fa4f 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -855,7 +855,8 @@ public class Vala.GirParser : CodeVisitor {
}
}
var getter_name = "get_%s".printf (info.symbol.name);
- if (current_symbols_info.contains (getter_name)) {
+ var setter_name = "set_%s".printf (info.symbol.name);
+ if (current_symbols_info.contains (getter_name) || current_symbols_info.contains (setter_name)) {
((Property) info.symbol).no_accessor_method = false;
}
} else if (info.symbol is Signal) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]