[vala] gtktemplate: Allow connecting signals of the template class itself



commit 3d5e8e7204d2c84cc3eb1306b1c7b7e7f971d23b
Author: Luca Bruno <lucabru src gnome org>
Date:   Fri Jun 28 23:37:25 2013 +0200

    gtktemplate: Allow connecting signals of the template class itself

 codegen/valagtkmodule.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valagtkmodule.vala b/codegen/valagtkmodule.vala
index e3e00cb..b8c8f41 100644
--- a/codegen/valagtkmodule.vala
+++ b/codegen/valagtkmodule.vala
@@ -108,7 +108,7 @@ public class Vala.GtkModule : GSignalModule {
 
                MarkupTokenType current_token = reader.read_token (null, null);
                while (current_token != MarkupTokenType.EOF) {
-                       if (current_token == MarkupTokenType.START_ELEMENT && reader.name == "object") {
+                       if (current_token == MarkupTokenType.START_ELEMENT && (reader.name == "template" || 
reader.name == "object")) {
                                var class_name = reader.get_attribute ("class");
                                if (class_name != null) {
                                        current_class = cclass_to_vala_map.get (class_name);


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