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

NewBranch.bjs
NewBranch.vala

index 9300afa..af89d20 100644 (file)
@@ -26,7 +26,7 @@
    "items" : [
     {
      "listeners" : {
-      "switch_page" : "(page, page_num) => {\n\tGLib.debug(\"Switch to page: %d\", page_num);\n}\n"
+      "switch_page" : "(page, page_num) => {\n\tGLib.debug(\"Switch to page: %d\", (int)page_num);\n\t\n}\n"
      },
      "* pack" : "get_content_area().add",
      "xtype" : "Notebook",
index 6fb86f4..b8fbe5a 100644 (file)
@@ -205,7 +205,8 @@ public class NewBranch : Object
 
             //listeners
             this.el.switch_page.connect( (page, page_num) => {
-               GLib.debug("Switch to page: %d", page_num);
+               GLib.debug("Switch to page: %d", (int)page_num);
+               
             });
         }