NewBranch.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 14 Dec 2018 04:46:26 +0000 (12:46 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 14 Dec 2018 04:46:26 +0000 (12:46 +0800)
NewBranch.vala

NewBranch.bjs
NewBranch.vala

index 9482320..28cbec3 100644 (file)
@@ -18,7 +18,7 @@
    "title" : "Create a working branch ",
    "xtype" : "Dialog",
    "# GitRepo? repo" : "null",
-   "|   void show" : "( GitRepo repo, Gee.ArrayList<GitMonitorQueue> queue ) \n{\n     // this.el.set_gravity(Gdk.Gravity.NORTH);\n    if (this.running) { // should not happen!!\n    \tGLib.error(\"new branch show called, when already being displayed?\");\n\t}\n\tthis.queue = queue;\n\t\n\tthis.running  = true;\n\tGitMonitor.gitmonitor.stop();\n\t\n    this.repo = repo;\n    \n\tthis.el.move((Gdk.Screen.width() / 2)- 250 ,0);\n\tthis.el.set_default_size( 500,200); // not sure why it grows..\n    GLib.debug(\"Loading tickets\"); \n     \n\n    this.el.show_all();\n    this.el.set_keep_above(true);\n    _this.prmodel.loadProjects();\n \t_this.dbmodel.loadTickets();\n \tthis.el.run();\n\n}",
+   "|   void show" : "( GitRepo repo, Gee.ArrayList<GitMonitorQueue> queue ) \n{\n     // this.el.set_gravity(Gdk.Gravity.NORTH);\n    if (this.running) { // should not happen!!\n    \tGLib.error(\"new branch show called, when already being displayed?\");\n\t}\n\tthis.queue = queue;\n\t\n\tthis.running  = true;\n\tGitMonitor.gitmonitor.stop();\n\t\n    this.repo = repo;\n    \n    \n    \n    \n\tthis.el.move((Gdk.Screen.width() / 2)- 250 ,0);\n\tthis.el.set_default_size( 500,200); // not sure why it grows..\n    GLib.debug(\"Loading tickets\"); \n     \n\n    this.el.show_all();\n    this.el.set_keep_above(true);\n    _this.prmodel.loadProjects();\n    \n    var curproj = GitTicket.singleton().getProjectByRepo(repo);\n    if (curproject != null) {\n//    \t_this.projectsel.selectProject(curproject);\n    }\n    \n \t_this.dbmodel.loadTickets();\n \tthis.el.run();\n\n}",
    "default_height" : 200,
    "$ xns" : "Gtk",
    "# bool running" : false,
index fafb5f9..23ee674 100644 (file)
@@ -113,6 +113,9 @@ public class NewBranch : Object
        
         this.repo = repo;
         
+        
+        
+        
        this.el.move((Gdk.Screen.width() / 2)- 250 ,0);
        this.el.set_default_size( 500,200); // not sure why it grows..
         GLib.debug("Loading tickets"); 
@@ -121,6 +124,12 @@ public class NewBranch : Object
         this.el.show_all();
         this.el.set_keep_above(true);
         _this.prmodel.loadProjects();
+        
+        var curproj = GitTicket.singleton().getProjectByRepo(repo);
+        if (curproject != null) {
+    //         _this.projectsel.selectProject(curproject);
+        }
+        
        _this.dbmodel.loadTickets();
        this.el.run();