[vala] girparser: Fix virtual signals in interfaces



commit 1a399423fc95d730c80c9ef27f9f8e50aae2522f
Author: Abderrahim Kitouni <a kitouni gmail com>
Date:   Thu Aug 4 10:16:45 2011 +0100

    girparser: Fix virtual signals in interfaces
    
    The default handler is marked "abstract" and was considered to be an emitter

 vala/valagirparser.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 645e215..1581753 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -743,7 +743,7 @@ public class Vala.GirParser : CodeVisitor {
 							merged = true;
 						} else if (sym is Signal) {
 							var sig = (Signal) sym;
-							if (m.is_virtual) {
+							if (m.is_virtual || m.is_abstract) {
 								sig.is_virtual = true;
 							} else {
 								sig.set_attribute ("HasEmitter", true);



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