sync
authorAlan Knowles <alan@roojs.com>
Thu, 1 Nov 2018 13:08:10 +0000 (21:08 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 1 Nov 2018 13:08:10 +0000 (21:08 +0800)
GitMonitorQueue.vala
GitRepo.vala
RooTicket.vala

index 1af6eca..7d40d54 100644 (file)
@@ -45,7 +45,7 @@ public class GitMonitorQueue : MonitorNamePathDir {
                        
                        // trigger the suggestion to start a new branch
                        
-                       NewBranch.show(this.repo);
+                       NewBranch.signleton().show(this.repo);
                
                }
 
index 4e018e5..99b0267 100644 (file)
@@ -26,7 +26,7 @@ public class GitRepo : Object
        public static GitRepo singleton()
     {
         if (_GitRepo == null) {
-            _GitRepo = new GitRepo();
+            _GitRepo = new GitRepo.single();
             _GitRepo.cache = new Gee.HashMap<string,GitRepo>();
         }
         return _GitRepo;
@@ -137,9 +137,9 @@ public class GitRepo : Object
                return new GitRepo(path);
        }
        
-    
-   
+    private GitRepo.single() {
+               // used to create the signleton
+       }
     /**
      * constructor:
      * 
index f845baa..c30925d 100644 (file)
@@ -7,7 +7,7 @@ static RooTicket  _RooTicket;
 
 
 
-class RooTicket : Object
+public class RooTicket : Object
 {