From 01979e4b31693464a1fdb6e32b0f1e8fa818fb32 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 30 Oct 2018 17:06:26 +0800 Subject: [PATCH] NewBranch.bjs NewBranch.vala --- NewBranch.bjs | 2 +- NewBranch.vala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NewBranch.bjs b/NewBranch.bjs index 09156f6e..103ea705 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 this.el.move(Gdk.Screen.width() / 2 ,0);\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 - 250 ,0);\n this.el.show_all();\n \n}", "default_height" : 200, "$ modal" : true, "$ xns" : "Gtk", diff --git a/NewBranch.vala b/NewBranch.vala index b39edb30..1bf1228e 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -63,7 +63,7 @@ public class NewBranch : Object public void show ( ) { // this.el.set_gravity(Gdk.Gravity.NORTH); - this.el.move(Gdk.Screen.width() / 2 ,0); + this.el.move(Gdk.Screen.width() / 2 - 250 ,0); this.el.show_all(); } -- 2.39.2