X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=StatusIcon.vala;h=d2154e0cd1d25495f261b7cb1d9f039da7110b27;hp=137d750427af53fd9bf89f2acf8d061d46c79872;hb=414efa75f7c3df89d3ffc116ef022c352e448412;hpb=f93028e569039b48af6351e2d37f80d15d94ff5a diff --git a/StatusIcon.vala b/StatusIcon.vala index 137d7504..d2154e0c 100644 --- a/StatusIcon.vala +++ b/StatusIcon.vala @@ -180,6 +180,7 @@ public class StatusIconA : StatusIcon { this.append(this.after_seperator); //this.append(new MenuItemUpdateTimesheet()); this.append(new MenuItemManageClones()); + this.append(new MenuItemNewTicket()); this.append(new MenuItemAbout()); this.append(new MenuItemQuit()); this.merge_items = new Gee.ArrayList(); @@ -225,7 +226,7 @@ public class StatusIconA : StatusIcon { this.label = ("Merge [%s] #%s %s".printf(r.name, t.id , t.summary)); this.activate.connect(() => { - MergeBranch.singleton().show(this.ticket); + MergeBranch.singleton().show(this.ticket, null); // show merge dialog.. }); @@ -459,13 +460,39 @@ public class StatusIconA : StatusIcon { this.accel_group = null; this.activate.connect( () => { - Clones.singleton().show(); + GitRepo.updateAll("show_clones"); + + // Clones.singleton().show(); + }); + } + + + } + + class MenuItemNewTicket : ImageMenuItem { + + public MenuItemNewTicket() + { + + var image = new Gtk.Image(); + image.set_from_stock(Gtk.Stock.FULLSCREEN,Gtk.IconSize.MENU ); + this.set_image (image); + this.label= "New Ticket"; + this.always_show_image = true; + this.accel_group = null; + + this.activate.connect( () => { + Ticket.singleton().show(null); + + + // Clones.singleton().show(); }); } } + class MenuItemAbout : ImageMenuItem { public MenuItemAbout()