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>();
}
foreach(var r in GitRepo.singleton().cache.values ) {
GLib.debug("checking %s for branch = %s", r.name, r.currentBranch.name);
- if (!r.is_wip_branch()) {
+ if (r.is_master_branch()) {
continue;
}
GLib.debug("checking for activeTicket");
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..
});
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()