Clones.bjs
[gitlive] / Clones.vala
index 2c6acde..57c2a3f 100644 (file)
@@ -62,26 +62,20 @@ public class Clones : Object
     }
 
     // user defined functions
-    public void show ()    {
+    public void show (Gtk.Widget button)    {
     
-        
         this.el.set_deletable(false);
         this.el.show_all();
-        // load clones..
-    //     this.get('/reposStore').load();
-        
-        //this.get('/ok_button').el.set_sensitive(false);
-        
-        // block until we return.
-    //    var run_ret = this.el.run();
-    //    if (run_ret < 1 ) {
-    //        return  "DONE";
-    //    }
-    //    print("RUN RETURN : " + run_ret);
-    //    return "DONE";
-        //print(JSON.stringify(this.get('bug').getValue()));
-       // return this.get('bug').getValue();
-        //this.success = c.success;
+               //console.log('show all');
+       this.el.set_modal(true);
+       this.el.set_relative_to(btn);
+    
+       this.el.set_position(Gtk.PositionType.RIGHT);
+    
+       // window + header?
+       this.el.show_all();
+       this.el.set_size_request(800,500);
+       this.view.el.grab_focus();
     }
     public class Xcls_Box2 : Object
     {