// set gobject values
this.el.title = "Create a working branch ";
- this.el.default_height = 200;
+ this.el.default_height = 500;
this.el.default_width = 500;
this.el.deletable = true;
this.el.modal = true;
_this.prmodel.loadProjects(curproj == null ? "" : curproj.id);
_this.dbmodel.loadTickets(curproj == null ? "": curproj.id, tid);
+
if (tid != "") {
var name = RooTicket.singleton().usernameLocal();
var ticket = RooTicket.singleton().getById(tid);
_this.name.el.set_text("wip_%s_T%s_%s".printf(name,ticket.id, ticket.summaryToBranchName()));
- }
+
+ }
+ _this.view.loadTicket(tid);
this.el.run();
}
var dt = new DateTime.now_local();
_this.name.el.set_text("wip_%s_%s".printf(name,dt.format("%Y_%b_%d")));
+ _this.view.loadTicket("");
return;
}
var ticket = RooTicket.singleton().getById(ticket_id);
_this.name.el.set_text("wip_%s_T%s_%s".printf(name,ticket.id, ticket.summaryToBranchName()));
-
+ _this.scrolled_window.el.show();
+
+ _this.view.loadTicket(ticket.id);
//GLib.debug (//"Selection: %s, %s\n", (string) val1, (string) val2);
});
}
// my vars (dec)
// set gobject values
+ this.el.height_request = 500;
+ this.el.vexpand = true;
var child_0 = new Xcls_view( _this );
child_0.ref();
this.el.add ( child_0.el );
this.el = new WebKit.WebView();
// my vars (dec)
+
+ // set gobject values
}
// user defined functions
+ public void loadTicket (string tid) {
+ int h,w;
+ _this.el.get_size(out w, out h);
+
+ if (tid == "") {
+ _this.scrolled_window.el.hide();
+ _this.el.resize(w, 150);
+ } else {
+ _this.scrolled_window.el.show();
+ _this.el.resize(w, 800);
+ }
+ this.el.load_uri("https://roojs.com/admin.php/MTrack/View/" + tid);
+ }
}