From 9d6e5605005354ea829c92b2f57354199c95f554 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 30 Oct 2018 18:20:31 +0800 Subject: [PATCH] NewBranch.bjs NewBranch.vala --- NewBranch.bjs | 2 +- NewBranch.vala | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/NewBranch.bjs b/NewBranch.bjs index 3dea9fb1..50dd24fc 100644 --- a/NewBranch.bjs +++ b/NewBranch.bjs @@ -17,7 +17,7 @@ "$ deletable" : true, "title" : "Create a working branch ", "xtype" : "Dialog", - "| void show" : "( ) \n{\n // this.el.set_gravity(Gdk.Gravity.NORTH);\n \n \n \n}", + "| void show" : "( ) \n{\n // this.el.set_gravity(Gdk.Gravity.NORTH);\n \n\tthis.el.move((Gdk.Screen.width() / 2)- 250 ,0);\n \tGLib.debug(\"Loading tickets\"); \n \t_this.dbmodel.loadTickets();\n\n this.el.show_all();\n\n\n \n \n \n}", "default_height" : 200, "$ xns" : "Gtk", "bool modal" : true, diff --git a/NewBranch.vala b/NewBranch.vala index 2c63d363..edc4480e 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -64,7 +64,15 @@ public class NewBranch : Object public void show ( ) { // this.el.set_gravity(Gdk.Gravity.NORTH); - + + this.el.move((Gdk.Screen.width() / 2)- 250 ,0); + GLib.debug("Loading tickets"); + _this.dbmodel.loadTickets(); + + this.el.show_all(); + + + } -- 2.39.2