NewBranch.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 21 Mar 2019 05:57:39 +0000 (13:57 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 21 Mar 2019 05:57:39 +0000 (13:57 +0800)
NewBranch.vala

NewBranch.bjs
NewBranch.vala

index 5530b9e..9300afa 100644 (file)
@@ -26,7 +26,7 @@
    "items" : [
     {
      "listeners" : {
-      "switch_page" : ""
+      "switch_page" : "(page, page_num) => {\n\tGLib.debug(\"Switch to page: %d\", page_num);\n}\n"
      },
      "* pack" : "get_content_area().add",
      "xtype" : "Notebook",
index 9ad41ca..6fb86f4 100644 (file)
@@ -204,7 +204,9 @@ public class NewBranch : Object
             this.el.append_page (  child_5.el , _this.label_quick_commit.el );
 
             //listeners
-            this.el.switch_page.connect( );
+            this.el.switch_page.connect( (page, page_num) => {
+               GLib.debug("Switch to page: %d", page_num);
+            });
         }
 
         // user defined functions