projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4882068
)
NewBranch.bjs
author
Alan Knowles
<alan@roojs.com>
Thu, 21 Mar 2019 05:47:18 +0000
(13:47 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 21 Mar 2019 05:47:18 +0000
(13:47 +0800)
NewBranch.vala
NewBranch.bjs
patch
|
blob
|
history
NewBranch.vala
patch
|
blob
|
history
diff --git
a/NewBranch.bjs
b/NewBranch.bjs
index
7eceb60
..
5a447dc
100644
(file)
--- a/
NewBranch.bjs
+++ b/
NewBranch.bjs
@@
-56,7
+56,7
@@
"bool homogeneous" : false,
"* pack" : "append_page,_this.label_select_ticket.el",
"xtype" : "Box",
"bool homogeneous" : false,
"* pack" : "append_page,_this.label_select_ticket.el",
"xtype" : "Box",
- "| void load_data" : "() {\n\n GLib.debug(\"Loading tickets\"); \n \n var curproj = RooProject.getProjectByRepo(this.repo);\n _this.prmodel.loadProjects(curproj == null ? \"\" : curproj.id);\n \n \t_this.dbmodel.loadTickets(curproj == null ? \"\": curproj.id, tid);\n \t_this.
create
btn.updateState();\n \t\n\t_this.ticketsel.el.get_child().get_style_context().remove_class(\"warning\");\n \tif (tid != \"\") { \n\t \tvar name = RooTicket.singleton().usernameLocal();\n \t\tvar ticket = RooTicket.singleton().getById(tid);\n\t\t_this.name.el.set_text(\"wip_%s_T%s_%s\".printf(name,ticket.id, ticket.summaryToBranchName()));\n\t} else {\n\t\t_this.ticketsel.el.get_child().get_style_context().add_class(\"warning\");\n\t}\n _this.view.loadTicket(tid);\n \n \n}\n",
+ "| void load_data" : "() {\n\n GLib.debug(\"Loading tickets\"); \n \n var curproj = RooProject.getProjectByRepo(this.repo);\n _this.prmodel.loadProjects(curproj == null ? \"\" : curproj.id);\n \n \t_this.dbmodel.loadTickets(curproj == null ? \"\": curproj.id, tid);\n \t_this.
branch
btn.updateState();\n \t\n\t_this.ticketsel.el.get_child().get_style_context().remove_class(\"warning\");\n \tif (tid != \"\") { \n\t \tvar name = RooTicket.singleton().usernameLocal();\n \t\tvar ticket = RooTicket.singleton().getById(tid);\n\t\t_this.name.el.set_text(\"wip_%s_T%s_%s\".printf(name,ticket.id, ticket.summaryToBranchName()));\n\t} else {\n\t\t_this.ticketsel.el.get_child().get_style_context().add_class(\"warning\");\n\t}\n _this.view.loadTicket(tid);\n \n \n}\n",
"$ xns" : "Gtk",
"Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
"items" : [
"$ xns" : "Gtk",
"Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
"items" : [
diff --git
a/NewBranch.vala
b/NewBranch.vala
index
0b2c809
..
2e27833
100644
(file)
--- a/
NewBranch.vala
+++ b/
NewBranch.vala
@@
-309,7
+309,7
@@
public class NewBranch : Object
_this.prmodel.loadProjects(curproj == null ? "" : curproj.id);
_this.dbmodel.loadTickets(curproj == null ? "": curproj.id, tid);
_this.prmodel.loadProjects(curproj == null ? "" : curproj.id);
_this.dbmodel.loadTickets(curproj == null ? "": curproj.id, tid);
- _this.
create
btn.updateState();
+ _this.
branch
btn.updateState();
_this.ticketsel.el.get_child().get_style_context().remove_class("warning");
if (tid != "") {
_this.ticketsel.el.get_child().get_style_context().remove_class("warning");
if (tid != "") {