From 5b0fc2c68df52a849bd2802979557b963fc5ef7f Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 30 Oct 2018 17:06:17 +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 8933acf7..09156f6e 100644 --- a/NewBranch.bjs +++ b/NewBranch.bjs @@ -17,7 +17,7 @@ "$ deletable" : true, "title" : "Create a working branch ", "xtype" : "Dialog", - "| void show" : "( ) \n{\n \n this.el.show_all();\n \n}", + "| void show" : "( ) \n{\n // this.el.set_gravity(Gdk.Gravity.NORTH);\n this.el.move(Gdk.Screen.width() / 2 ,0);\n this.el.show_all();\n \n}", "default_height" : 200, "$ modal" : true, "$ xns" : "Gtk", diff --git a/NewBranch.vala b/NewBranch.vala index a39b2ea2..b39edb30 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -62,7 +62,8 @@ public class NewBranch : Object // user defined functions public void show ( ) { - + // this.el.set_gravity(Gdk.Gravity.NORTH); + this.el.move(Gdk.Screen.width() / 2 ,0); this.el.show_all(); } -- 2.39.2