Partial Fix #5560 - Gitlive - branching wip
[gitlive] / StatusIcon.vala
index efedeba..d2154e0 100644 (file)
@@ -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<Gtk.MenuItem>();
@@ -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()