X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=Ticket.vala;fp=Ticket.vala;h=425044516efe54c328264f36c44efc199455162d;hp=d49456f1a2d37803be3a23d33de1c80694eb3a66;hb=6e2622de5904f30b695f5125985455531b914e43;hpb=2735f10cf96bcabf94eaa037e73d0bdd6bcc038a diff --git a/Ticket.vala b/Ticket.vala index d49456f1..42504451 100644 --- a/Ticket.vala +++ b/Ticket.vala @@ -112,54 +112,53 @@ public class Ticket : Object this.el.set_default_size( 500,200); // not sure why it grows.. GLib.debug("Showing dialog?"); - while(Gtk.events_pending()) { - Gtk.main_iteration(); - } - - - - - //GitMonitor.gitmonitor.stop(); - - this.repo = repo; - - - - - // GLib.debug("Loading tickets"); - - + 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 = ""; - _this.spinner.el.stop(); - _this.spinner.el.hide(); + + + // GLib.debug("Loading tickets"); + - this.table.el.show(); - - + 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.el.run(); + this.table.el.show(); + + + + + + this.el.run(); + }); } public class Xcls_Box2 : Object