From 7364264bf0df6b8eee51819608947fea99c64863 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 21 Mar 2019 13:57:00 +0800 Subject: [PATCH] NewBranch.bjs NewBranch.vala --- NewBranch.bjs | 3 +++ NewBranch.vala | 3 +++ 2 files changed, 6 insertions(+) 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 -- 2.39.2