X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Clones.vala;h=0c0f9b25cb19883df6a7ab856b1d74c329bc14b5;hb=54127f163aeb7bbd316788ec9a03b29b3661aae2;hp=6f6d78b0722f284a52c384a83d4f97aca6f44445;hpb=ac9372b5e9fb2acf3aec877e84269cba67c8cf10;p=gitlive diff --git a/Clones.vala b/Clones.vala index 6f6d78b0..0c0f9b25 100644 --- a/Clones.vala +++ b/Clones.vala @@ -12,7 +12,9 @@ public class Clones : Object } return _Clones; } + public Xcls_spinner spinner; public Xcls_toolbar toolbar; + public Xcls_scrolled scrolled; public Xcls_reposView reposView; public Xcls_reposStore reposStore; public Xcls_tv_autocommit tv_autocommit; @@ -68,9 +70,14 @@ public class Clones : Object // user defined functions public void loadAndShow () { + + _this.el.show_all(); + _this.toolbar.el.hide(); _this.scrolled.el.hide(); - _this.progress.el.show(); + _this.spinner.el.show(); + _this.spinner.el.start(); + GitRepo.updateAll("show_clones"); @@ -78,6 +85,12 @@ public class Clones : Object } public void show () { + + _this.spinner.el.stop(); + _this.spinner.el.hide(); + _this.toolbar.el.show(); + _this.scrolled.el.show(); + GLib.debug("show clones?"); this.el.set_deletable(true); this.el.set_gravity(Gdk.Gravity.NORTH); @@ -126,16 +139,42 @@ public class Clones : Object // my vars (dec) // set gobject values - var child_0 = new Xcls_toolbar( _this ); + var child_0 = new Xcls_spinner( _this ); child_0.ref(); this.el.pack_start ( child_0.el , false,false,0 ); - var child_1 = new Xcls_ScrolledWindow5( _this ); + var child_1 = new Xcls_toolbar( _this ); child_1.ref(); - this.el.pack_end ( child_1.el , true,true,0 ); + this.el.pack_start ( child_1.el , false,false,0 ); + var child_2 = new Xcls_scrolled( _this ); + child_2.ref(); + this.el.pack_end ( child_2.el , true,true,0 ); + } + + // user defined functions + } + public class Xcls_spinner : Object + { + public Gtk.Spinner el; + private Clones _this; + + + // my vars (def) + + // ctor + public Xcls_spinner(Clones _owner ) + { + _this = _owner; + _this.spinner = this; + this.el = new Gtk.Spinner(); + + // my vars (dec) + + // set gobject values } // user defined functions } + public class Xcls_toolbar : Object { public Gtk.Box el; @@ -155,14 +194,14 @@ public class Clones : Object // set gobject values this.el.homogeneous = true; - var child_0 = new Xcls_Button4( _this ); + var child_0 = new Xcls_Button5( _this ); child_0.ref(); this.el.add ( child_0.el ); } // user defined functions } - public class Xcls_Button4 : Object + public class Xcls_Button5 : Object { public Gtk.Button el; private Clones _this; @@ -171,7 +210,7 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_Button4(Clones _owner ) + public Xcls_Button5(Clones _owner ) { _this = _owner; this.el = new Gtk.Button(); @@ -200,7 +239,7 @@ public class Clones : Object } - public class Xcls_ScrolledWindow5 : Object + public class Xcls_scrolled : Object { public Gtk.ScrolledWindow el; private Clones _this; @@ -209,9 +248,10 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_ScrolledWindow5(Clones _owner ) + public Xcls_scrolled(Clones _owner ) { _this = _owner; + _this.scrolled = this; this.el = new Gtk.ScrolledWindow( null, null ); // my vars (dec)