Clones.bjs
[gitlive] / Clones.vala
index 066a3cd..2c6acde 100644 (file)
@@ -2,7 +2,7 @@ static Clones  _Clones;
 
 public class Clones : Object
 {
-    public Gtk.Dialog el;
+    public Gtk.Popover el;
     private Clones  _this;
 
     public static Clones singleton()
@@ -12,7 +12,6 @@ public class Clones : Object
         }
         return _Clones;
     }
-    public Xcls_Clones Clones;
     public Xcls_reposView reposView;
     public Xcls_reposStore reposStore;
     public Xcls_tv_autocommit tv_autocommit;
@@ -35,18 +34,14 @@ public class Clones : Object
     public Clones()
     {
         _this = this;
-        this.el = new Gtk.Dialog();
+        this.el = new Gtk.Popover( null );
 
         // my vars (dec)
 
         // set gobject values
-        this.el.title = "Manage Clones";
         this.el.border_width = 3;
-        this.el.default_height = 500;
-        this.el.default_width = 600;
-        this.el.deletable = true;
         this.el.modal = true;
-        var child_0 = new Xcls_Clones( _this );
+        var child_0 = new Xcls_Box2( _this );
         child_0.ref();
         this.el.get_content_area().add (  child_0.el  );
         var child_1 = new Xcls_ok_button( _this );
@@ -88,7 +83,7 @@ public class Clones : Object
        // return this.get('bug').getValue();
         //this.success = c.success;
     }
-    public class Xcls_Clones : Object
+    public class Xcls_Box2 : Object
     {
         public Gtk.Box el;
         private Clones  _this;
@@ -97,11 +92,10 @@ public class Clones : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Clones(Clones _owner )
+        public Xcls_Box2(Clones _owner )
         {
             _this = _owner;
-            _this.Clones = this;
-            this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
+            this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
 
             // my vars (dec)
 
@@ -111,7 +105,7 @@ public class Clones : Object
             this.el.pack_start (  child_0.el , false,false,0 );
             var child_1 = new Xcls_ScrolledWindow9( _this );
             child_1.ref();
-            this.el.pack_end (  child_1.el , true,true,0 );
+            this.el.add (  child_1.el  );
         }
 
         // user defined functions
@@ -443,6 +437,7 @@ public class Clones : Object
             // my vars (dec)
 
             // set gobject values
+            this.el.expand = true;
             this.el.shadow_type = Gtk.ShadowType.IN;
             var child_0 = new Xcls_reposView( _this );
             child_0.ref();
@@ -672,7 +667,7 @@ public class Clones : Object
             this.el.min_width = 50;
             var child_0 = new Xcls_cr_autopush( _this );
             child_0.ref();
-            this.el.pack_start (  child_0.el  );
+            this.el.pack_start (  child_0.el , false );
 
             // init method
 
@@ -746,7 +741,7 @@ public class Clones : Object
             this.el.resizable = true;
             var child_0 = new Xcls_cr_repo( _this );
             child_0.ref();
-            this.el.pack_start (  child_0.el  );
+            this.el.pack_start (  child_0.el , false );
 
             // init method
 
@@ -801,7 +796,7 @@ public class Clones : Object
             this.el.min_width = 50;
             var child_0 = new Xcls_cr_current_branch( _this );
             child_0.ref();
-            this.el.pack_start (  child_0.el  );
+            this.el.pack_start (  child_0.el , false );
 
             // init method
 
@@ -857,7 +852,7 @@ public class Clones : Object
             this.el.min_width = 50;
             var child_0 = new Xcls_cr_last_updated( _this );
             child_0.ref();
-            this.el.pack_start (  child_0.el  );
+            this.el.pack_start (  child_0.el , false );
 
             // init method
 
@@ -913,7 +908,7 @@ public class Clones : Object
             this.el.resizable = false;
             var child_0 = new Xcls_cr_all_branches( _this );
             child_0.ref();
-            this.el.pack_start (  child_0.el  );
+            this.el.pack_start (  child_0.el , false );
 
             // init method