[vala] codegen: Do not declare virtual function for default signal handlers



commit 051c2888af666fa75dd1c6301d190afc4f9f9d7d
Author: Luca Bruno <lucabru src gnome org>
Date:   Mon Jun 27 15:29:42 2011 +0200

    codegen: Do not declare virtual function for default signal handlers
    
    Fixes bug 615637.

 codegen/valaccodemethodmodule.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valaccodemethodmodule.vala b/codegen/valaccodemethodmodule.vala
index e2f0985..ea78b53 100644
--- a/codegen/valaccodemethodmodule.vala
+++ b/codegen/valaccodemethodmodule.vala
@@ -292,8 +292,8 @@ public abstract class Vala.CCodeMethodModule : CCodeStructModule {
 		}
 
 		// do not declare overriding methods and interface implementations
-		if (m.is_abstract || m.is_virtual
-		    || (m.base_method == null && m.base_interface_method == null)) {
+		if ((m.is_abstract || m.is_virtual
+			 || (m.base_method == null && m.base_interface_method == null)) && m.signal_reference == null) {
 			generate_method_declaration (m, cfile);
 
 			if (!m.is_internal_symbol ()) {



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