//print(Array.prototype.slice.call(arguments).join(','));
print("menu activiate called\n");
+ menu.updateMerges();
//var menu = this.get('menu');
menu.show_all();
this.remove(m);
}
foreach(var r in GitRepo.singleton().cache.values ) {
- GLib.log("checking r.name for branches");
+ GLib.debug("checking %s for branch = %s", r.name, r.currentBranch.name);
if (!r.is_wip_branch()) {
continue;
}
- GLib.log("checking for activeTicket");
+ GLib.debug("checking for activeTicket");
var t = r.activeTicket;
if (t == null) {
continue;
}
var mi = new MergeMenuItem(r,t);
- this.insert (mi,4); //backwards..
+ this.insert (mi,4); //backwards.
+ this.merge_items.add(mi);
}
}
-
+
class MergeMenuItem : Gtk.MenuItem {
GitRepo repo;
this.label = ("Merge [%s] #%s %s".printf(r.name, t.id , t.summary));
this.activate.connect(() => {
+ MergeBranch.singleton().show(this.ticket, null);
// show merge dialog..
});
var image = new Gtk.Image();
image.set_from_stock(Gtk.Stock.SAVE,Gtk.IconSize.MENU );
- this.set_image (image);
+ this.set_image (image);
this.label= "Update Timesheet";
this.always_show_image = true;
this.accel_group = null;
this.accel_group = null;
this.activate.connect( () => {
- Clones.singleton().show();
+ GitRepo.updateAll("show_clones");
+
+ // Clones.singleton().show();
});
}