NewBranch.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 10:15:31 +0000 (18:15 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 10:15:31 +0000 (18:15 +0800)
NewBranch.vala

NewBranch.bjs
NewBranch.vala

index 2fb7913..1c0bbc3 100644 (file)
    "listeners" : {
     "delete_event" : "(self, event) => {\n    this.el.hide();\n    return true; \n    //test  \n}\n ",
     "response" : " (self, response_id) =>  { \n  \n\t GLib.debug(\"got %d\", (int) response_id);\n}",
-    "show" : "(self)  => {\n \n \n\n  this.el.run();\n  //test\n}"
+    "show" : "(self)  => {\n \n \n\tthis.el.move((Gdk.Screen.width() / 2)- 250 ,0);\n    \n \n    \n    this.el.show_all();\n\tGLib.debug(\"Loading tickets\");\n\t_this.dbmodel.loadTickets();\n\t    \n\n  this.el.run();\n  //test\n}"
    },
    "default_width" : 500,
    "$ 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)- 250 ,0);\n    \n \n    \n    this.el.show_all();\n\t_this.dbmodel.loadTickets();\n\t\n\t    \n\n    \n      \n}",
+   "|   void show" : "( ) \n{\n     // this.el.set_gravity(Gdk.Gravity.NORTH);\n    \n    \n      \n}",
    "default_height" : 200,
    "$ modal" : true,
    "$ xns" : "Gtk",
index 15a40f8..bcb6a0b 100644 (file)
@@ -56,6 +56,14 @@ public class NewBranch : Object
         this.el.show.connect( (self)  => {
          
          
+               this.el.move((Gdk.Screen.width() / 2)- 250 ,0);
+            
+         
+            
+            this.el.show_all();
+               GLib.debug("Loading tickets");
+               _this.dbmodel.loadTickets();
+                   
         
           this.el.run();
           //test
@@ -66,15 +74,7 @@ public class NewBranch : Object
     public   void show ( ) 
     {
          // this.el.set_gravity(Gdk.Gravity.NORTH);
-        this.el.move((Gdk.Screen.width() / 2)- 250 ,0);
-        
-     
         
-        this.el.show_all();
-       _this.dbmodel.loadTickets();
-       
-           
-    
         
           
     }