NewBranch.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 09:06:17 +0000 (17:06 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 09:06:17 +0000 (17:06 +0800)
NewBranch.vala

NewBranch.bjs
NewBranch.vala

index 8933acf..09156f6 100644 (file)
@@ -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",
index a39b2ea..b39edb3 100644 (file)
@@ -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();
           
     }