X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=Clones.vala;fp=Clones.vala;h=123d5ae1a32d202e83a0055ac5bb5c0c91c3bbe3;hp=b152f7685ba220a50e5f3c36e058cbb17d215b08;hb=f23101131b07ea3b3c411f32065539db10418d1c;hpb=9a912327ca18c90347e106e936de1383555ae0b9 diff --git a/Clones.vala b/Clones.vala index b152f768..123d5ae1 100644 --- a/Clones.vala +++ b/Clones.vala @@ -70,47 +70,47 @@ public class Clones : Object // user defined functions public void loadAndShow () { - - _this.el.show_all(); - - _this.toolbar.el.hide(); - _this.scrolled.el.hide(); - _this.spinner.el.show(); - _this.spinner.el.start(); - - GitRepo.updateAll("show_clones"); this.el.set_deletable(true); this.el.set_gravity(Gdk.Gravity.NORTH); - this.el.move((Gdk.Screen.width() / 2 ) -400 ,0); + this.el.move((Gdk.Screen.width() / 2 ) - (int.min(1280,Gdk.Screen.width()) / 2) ,0); this.el.set_keep_above(true); this.el.set_default_size( - int.min(1024,Gdk.Screen.width()), - int.max(500,Gdk.Screen.height() - 300) + int.min(1280,Gdk.Screen.width()), + int.max(500,Gdk.Screen.height() - 200) ); + this.el.show_all(); + + this.toolbar.el.hide(); + this.scrolled.el.hide(); + this.spinner.el.show(); + this.spinner.el.start(); + + GitRepo.updateAll("show_clones"); + } public void show () { - - this.el.show_all(); - _this.spinner.el.stop(); - _this.spinner.el.hide(); - _this.toolbar.el.show(); - _this.scrolled.el.show(); - - this.el.set_deletable(true); + this.el.set_deletable(true); this.el.set_gravity(Gdk.Gravity.NORTH); - this.el.move((Gdk.Screen.width() / 2 ) -400 ,0); + this.el.move((Gdk.Screen.width() / 2 ) - (int.max(1280,Gdk.Screen.width()) / 2) ,0); this.el.set_keep_above(true); - this.el.set_default_size( - int.min(1024,Gdk.Screen.width()), - int.max(500,Gdk.Screen.height() - 300) + this.el.set_default_size( + int.max(1280,Gdk.Screen.width()), + int.max(500,Gdk.Screen.height() - 100) ); + this.el.show_all(); + this.spinner.el.stop(); + this.spinner.el.hide(); + this.toolbar.el.show(); + this.scrolled.el.show(); + + - _this.reposStore.load(); + this.reposStore.load(); GLib.debug("show clones = run?"); this.el.run(); @@ -349,7 +349,7 @@ public class Clones : Object //listeners this.el.row_activated.connect( (path, col) => { - if (col.title != "Current Branch") { + if (col.title == "Auto Commit" || col.title == "Auto Push" || col.title == "Auto Branch") { return; }