projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2c08268
)
NewBranch.bjs
author
Alan Knowles
<alan@roojs.com>
Thu, 21 Mar 2019 06:26:24 +0000
(14:26 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 21 Mar 2019 06:26:24 +0000
(14:26 +0800)
NewBranch.vala
NewBranch.bjs
patch
|
blob
|
history
NewBranch.vala
patch
|
blob
|
history
diff --git
a/NewBranch.bjs
b/NewBranch.bjs
index
bd369f1
..
70b49a7
100644
(file)
--- a/
NewBranch.bjs
+++ b/
NewBranch.bjs
@@
-250,7
+250,7
@@
"bool homogeneous" : false,
"xtype" : "Box",
"* pack" : "append_page,_this.label_create_ticket.el",
"bool homogeneous" : false,
"xtype" : "Box",
"* pack" : "append_page,_this.label_create_ticket.el",
- "| void load_data" : "() {\n \n \t
\n\t\n Timeout.add_seconds(1, () => {\n\t\t \n\t\tRooProject? curproj = null;\n\t\tif (_this.repo != null) {\n\t\t\tcurproj = RooProject.getProjectByRepo(_this.repo);\n\t\t}\n\t\t_this.prmodel.loadProjects(curproj == null ? \"\" : curproj.id);\n\t\tif (curproj != null) {\n\t \n\t\t\t\n\t\t\tvar rt = RooTicket.singleton();\n\t\t\trt.loadProjectOptions(curproj.id);\n\t\t\t\n\t\t\t_this.msmodel.loadMilestones();\n\t\t\t_this.primodel.loadPriorities();\n\t\t\t_this.sevmodel.loadSeverities();\n\t\t\t_this.clmodel.loadClassifications();\t\n\t\t\t_this.devmodel.loadDevelopers();\t\n\t\t\t\n\t\t}\n\t\t_this.summary.el.set_text(\"\");\n\t\t_this.description.el.buffer.text = \"\"; \n\t\t//_this.spinner.el.stop();\n\t\t//
_this.spinner.el.hide();\t\n\n\t\t_this.table.el.show();\n\t //_this.summary.el.grab_focus();\n \n\t \treturn false;\n \t});\n}\n",
+ "| void load_data" : "() {\n \n \t
_this.table.el.hide();\n\t_this.spinner.el.show();\n\t_this.spinner.el.start();\t\n\t\n Timeout.add_seconds(1, () => {\n\t\t \n\t\tRooProject? curproj = null;\n\t\tif (_this.repo != null) {\n\t\t\tcurproj = RooProject.getProjectByRepo(_this.repo);\n\t\t}\n\t\t_this.prmodel.loadProjects(curproj == null ? \"\" : curproj.id);\n\t\tif (curproj != null) {\n\t \n\t\t\t\n\t\t\tvar rt = RooTicket.singleton();\n\t\t\trt.loadProjectOptions(curproj.id);\n\t\t\t\n\t\t\t_this.msmodel.loadMilestones();\n\t\t\t_this.primodel.loadPriorities();\n\t\t\t_this.sevmodel.loadSeverities();\n\t\t\t_this.clmodel.loadClassifications();\t\n\t\t\t_this.devmodel.loadDevelopers();\t\n\t\t\t\n\t\t}\n\t\t_this.summary.el.set_text(\"\");\n\t\t_this.description.el.buffer.text = \"\"; \n\t\t_this.spinner.el.stop();\n\t\t
_this.spinner.el.hide();\t\n\n\t\t_this.table.el.show();\n\t //_this.summary.el.grab_focus();\n \n\t \treturn false;\n \t});\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
dcbbb9b
..
4cf5492
100644
(file)
--- a/
NewBranch.vala
+++ b/
NewBranch.vala
@@
-1125,7
+1125,9
@@
public class NewBranch : Object
// user defined functions
public void load_data () {
// user defined functions
public void load_data () {
-
+ _this.table.el.hide();
+ _this.spinner.el.show();
+ _this.spinner.el.start();
Timeout.add_seconds(1, () => {
Timeout.add_seconds(1, () => {
@@
-1149,8
+1151,8
@@
public class NewBranch : Object
}
_this.summary.el.set_text("");
_this.description.el.buffer.text = "";
}
_this.summary.el.set_text("");
_this.description.el.buffer.text = "";
-
//
_this.spinner.el.stop();
- //_this.spinner.el.hide();
+ _this.spinner.el.stop();
+ _this.spinner.el.hide();
_this.table.el.show();
//_this.summary.el.grab_focus();
_this.table.el.show();
//_this.summary.el.grab_focus();