X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=StatusIcon.vala;h=d2154e0cd1d25495f261b7cb1d9f039da7110b27;hp=efedebaa34e8fc32f788e31b7954c738cbf1fe2a;hb=424eebf8a96c11d28b3da871c3e1560638d3511f;hpb=2ac46b7e5e54b5382df0c55b865e47a9937e15f8 diff --git a/StatusIcon.vala b/StatusIcon.vala index efedebaa..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(); @@ -468,6 +469,30 @@ public class StatusIconA : StatusIcon { } + 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()