X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=Ticket.vala;h=12eb4684c01e9c18ae6030219c7ef15b06e7e58c;hp=d137fe98d6f2a0eee970ac0ae4b613773284da85;hb=refs%2Fheads%2Fwip_alan_T5632_cache_project_listing;hpb=30ee247c433160deefebbf3e200a9b880a34afbc diff --git a/Ticket.vala b/Ticket.vala index d137fe98..12eb4684 100644 --- a/Ticket.vala +++ b/Ticket.vala @@ -99,60 +99,69 @@ public class Ticket : Object if (this.running) { // should not happen!! GLib.error("new branch show called, when already being displayed?"); } - + this.running = true; _this.el.show_all(); - this.el.set_keep_above(true); + _this.table.el.hide(); _this.spinner.el.show(); _this.spinner.el.start(); - - - - this.running = true; - //GitMonitor.gitmonitor.stop(); - - this.repo = repo; - - - - + this.el.set_keep_above(true); this.el.move((Gdk.Screen.width() / 2)- 250 ,0); this.el.set_default_size( 500,200); // not sure why it grows.. - GLib.debug("Loading tickets"); - - + + GLib.debug("Showing dialog?"); + Timeout.add_seconds(1, () => { + + + - RooProject? curproj = null; - if (this.repo != null) { - curproj = RooProject.getProjectByRepo(this.repo); - } - _this.prmodel.loadProjects(curproj == null ? "" : curproj.id); - if (curproj != null) { - + //GitMonitor.gitmonitor.stop(); - var rt = RooTicket.singleton(); - rt.loadProjectOptions(curproj.id); + this.repo = repo; - _this.msmodel.loadMilestones(); - _this.primodel.loadPriorities(); - _this.sevmodel.loadSeverities(); - _this.clmodel.loadClassifications(); - _this.devmodel.loadDevelopers(); - } - _this.summary.el.set_text(""); - _this.description.el.buffer.text = ""; - + + + // GLib.debug("Loading tickets"); + - this.el.table.el.show(); - this.el.table.el.hide(); - + RooProject? curproj = null; + if (this.repo != null) { + curproj = RooProject.getProjectByRepo(this.repo); + } + _this.prmodel.loadProjects(curproj == null ? "" : curproj.id); + if (curproj != null) { + + + var rt = RooTicket.singleton(); + rt.loadProjectOptions(curproj.id); + + _this.msmodel.loadMilestones(); + _this.primodel.loadPriorities(); + _this.sevmodel.loadSeverities(); + _this.clmodel.loadClassifications(); + _this.devmodel.loadDevelopers(); + + } + _this.summary.el.set_text(""); + _this.description.el.buffer.text = ""; + _this.spinner.el.stop(); + _this.spinner.el.hide(); - + this.table.el.show(); + + + + + + + return false; + }); this.el.run(); + } public class Xcls_Box2 : Object