X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=Ticket.vala;fp=Ticket.vala;h=d49456f1a2d37803be3a23d33de1c80694eb3a66;hp=eb97279d359591931ef851d8aa25a5fba101a9c8;hb=2735f10cf96bcabf94eaa037e73d0bdd6bcc038a;hpb=8b15c3a449f23d00ee920071ca197f2b69462a91 diff --git a/Ticket.vala b/Ticket.vala index eb97279d..d49456f1 100644 --- a/Ticket.vala +++ b/Ticket.vala @@ -99,7 +99,7 @@ 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(); @@ -107,19 +107,25 @@ public class Ticket : Object _this.spinner.el.show(); _this.spinner.el.start(); + 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("Showing dialog?"); + while(Gtk.events_pending()) { + Gtk.main_iteration(); + } + - - 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"); @@ -144,10 +150,11 @@ public class Ticket : Object } _this.summary.el.set_text(""); _this.description.el.buffer.text = ""; - + _this.spinner.el.stop(); + _this.spinner.el.hide(); - this.el.table.el.show(); - this.el.table.el.hide(); + this.table.el.show(); +