[vala] GIR parser: Fix callback parameters in virtual methods



commit 6765a960532a947bab40eb7c60a304697e3af5af
Author: Jürg Billeter <j bitron ch>
Date:   Wed Jul 1 20:34:11 2009 +0100

    GIR parser: Fix callback parameters in virtual methods

 vapigen/valagirparser.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vapigen/valagirparser.vala b/vapigen/valagirparser.vala
index 71a0d07..54d09c1 100644
--- a/vapigen/valagirparser.vala
+++ b/vapigen/valagirparser.vala
@@ -874,7 +874,7 @@ public class Vala.GirParser : CodeVisitor {
 		}
 		int i = 0;
 
-		if (element_name == "method") {
+		if (element_name == "method" || element_name == "virtual-method") {
 			// implicit instance parameter
 			i++;
 		}



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