From: Alan Knowles Date: Wed, 31 Oct 2018 05:04:36 +0000 (+0800) Subject: NewBranch.bjs X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=e0dc55dfa639f2a6626cddb9a15b4cec6b05c81f NewBranch.bjs NewBranch.vala --- diff --git a/NewBranch.bjs b/NewBranch.bjs index 990ead6b..0a821738 100644 --- a/NewBranch.bjs +++ b/NewBranch.bjs @@ -49,7 +49,7 @@ }, { "listeners" : { - "changed" : "() => {\n\n\tValue val1;\n\tValue val2;\n \n\tthis.el.get_active_iter (out iter);\n\t_this.dbmodel.get_value (iter, 0, out val1);\n\t_this.dbmodellist_store.get_value (iter, 1, out val2);\n\n\tprint (\"Selection: %s, %d\\n\", (string) val1, (int) val2);\n}" + "changed" : "() => {\n\tGtk.TreeIter iter;\n\tValue val1;\n\tValue val2;\n \n\tthis.el.get_active_iter (out iter);\n\t_this.dbmodel.get_value (iter, 0, out val1);\n\t_this.dbmodellist_store.get_value (iter, 1, out val2);\n\n\tprint (\"Selection: %s, %d\\n\", (string) val1, (int) val2);\n}" }, "id" : "build_module", "* init" : "this.el.add_attribute(_this.dbcellrenderer.el , \"markup\", 1 );", diff --git a/NewBranch.vala b/NewBranch.vala index 61de69f6..96e42651 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -191,7 +191,7 @@ public class NewBranch : Object //listeners this.el.changed.connect( () => { - + Gtk.TreeIter iter; Value val1; Value val2;