]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Respect signal accessibility
authorMarc-André Lureau <marcandre.lureau@gmail.com>
Thu, 28 Jan 2010 21:20:45 +0000 (22:20 +0100)
committerJürg Billeter <j@bitron.ch>
Fri, 29 Jan 2010 15:24:08 +0000 (16:24 +0100)
This is at the vala level. GObject signals are somewhat public,
if you get the name or signal id, by introspection for example.

Fixes bug 592579.

vala/valamemberaccess.vala

index b7fab0b264c93fe8e41769e9d72ca25aaee59022..ceb2840ee75a437f841bd3ae91999e68674cf5f7 100644 (file)
@@ -544,6 +544,7 @@ public class Vala.MemberAccess : Expression {
                        instance = (prop.binding == MemberBinding.INSTANCE);
                } else if (member is Signal) {
                        instance = true;
+                       access = member.access;
                }
 
                member.used = true;