Clones.bjs
[gitlive] / Clones.vala
index befa7f3..b5e36fa 100644 (file)
@@ -66,9 +66,18 @@ public class Clones : Object
     }
 
     // user defined functions
+    public void loadAndShow () {
+       _this.toolbar.el.hide();
+       _this.scrolled.el.hide();
+       _this.progress.el.show();
+       GitRepo.updateAll("show_clones");
+       
+       
+       
+    }
     public void show ()    {
     
-        
+        GLib.debug("show clones?");
         this.el.set_deletable(true);
         this.el.set_gravity(Gdk.Gravity.NORTH);
         this.el.move((Gdk.Screen.width() / 2 ) -400 ,0);
@@ -81,6 +90,7 @@ public class Clones : Object
         this.el.show_all();
         _this.reposStore.load();
         this.el.set_keep_above(true);
+            GLib.debug("show clones = run?");
         this.el.run();
         // load clones..
     //     this.get('/reposStore').load();
@@ -169,6 +179,12 @@ public class Clones : Object
             // set gobject values
             this.el.label = "Add Repository";
 
+            // init method
+
+            {
+               this.el.get_style_context().add_class("suggested-action");
+            }
+
             //listeners
             this.el.clicked.connect( () => {
                        Clone.singleton().show(this.el);