Clones.bjs
[gitlive] / Clones.vala
index e61931c..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()
@@ -34,16 +34,12 @@ 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_Box2( _this );
         child_0.ref();
@@ -99,7 +95,7 @@ public class Clones : Object
         public Xcls_Box2(Clones _owner )
         {
             _this = _owner;
-            this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
+            this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
 
             // my vars (dec)
 
@@ -109,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
@@ -441,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();