[vala] GType: Declare inherited methods in interface implementations



commit 4cc5245093199c0d9a42da3243a104c14e92ffe4
Author: Jürg Billeter <j bitron ch>
Date:   Mon May 4 22:56:59 2009 +0200

    GType: Declare inherited methods in interface implementations
    
    Fixes bug 581290.
---
 gobject/valagtypemodule.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gobject/valagtypemodule.vala b/gobject/valagtypemodule.vala
index bb52ad0..abf366d 100644
--- a/gobject/valagtypemodule.vala
+++ b/gobject/valagtypemodule.vala
@@ -1253,6 +1253,8 @@ internal class Vala.GTypeModule : GErrorModule {
 						base_method = cl_method.base_interface_method;
 					}
 
+					generate_method_declaration (base_method, source_declarations);
+
 					var ciface = new CCodeIdentifier ("iface");
 					init_block.add_statement (new CCodeExpressionStatement (new CCodeAssignment (new CCodeMemberAccess.pointer (ciface, m.vfunc_name), new CCodeIdentifier (base_method.get_cname ()))));
 				}



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