From c00dfdd1de11538de34f2218b6273466f319dce7 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 21 Mar 2019 13:58:43 +0800 Subject: [PATCH] NewBranch.bjs NewBranch.vala --- NewBranch.bjs | 2 +- NewBranch.vala | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NewBranch.bjs b/NewBranch.bjs index 9300afa8..af89d200 100644 --- a/NewBranch.bjs +++ b/NewBranch.bjs @@ -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", diff --git a/NewBranch.vala b/NewBranch.vala index 6fb86f43..b8fbe5ab 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -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); + }); } -- 2.39.2