[vala] Respect signal accessibility



commit 7ebff0b09ee68ffb95328202b622e6706b32160d
Author: Marc-André Lureau <marcandre lureau gmail com>
Date:   Thu Jan 28 22:20:45 2010 +0100

    Respect signal accessibility
    
    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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/vala/valamemberaccess.vala b/vala/valamemberaccess.vala
index b7fab0b..ceb2840 100644
--- a/vala/valamemberaccess.vala
+++ b/vala/valamemberaccess.vala
@@ -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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]