From: Alan Knowles Date: Thu, 21 Mar 2019 05:57:00 +0000 (+0800) Subject: NewBranch.bjs X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=7364264bf0df6b8eee51819608947fea99c64863 NewBranch.bjs NewBranch.vala --- diff --git a/NewBranch.bjs b/NewBranch.bjs index 28405aec..5530b9e6 100644 --- a/NewBranch.bjs +++ b/NewBranch.bjs @@ -25,6 +25,9 @@ "bool modal" : true, "items" : [ { + "listeners" : { + "switch_page" : "" + }, "* pack" : "get_content_area().add", "xtype" : "Notebook", "$ xns" : "Gtk", diff --git a/NewBranch.vala b/NewBranch.vala index d9c9f4ad..9ad41cac 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -202,6 +202,9 @@ public class NewBranch : Object var child_5 = new Xcls_quick_commit_tab( _this ); child_5.ref(); this.el.append_page ( child_5.el , _this.label_quick_commit.el ); + + //listeners + this.el.switch_page.connect( ); } // user defined functions