projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
84cfcbc
)
NewBranch.bjs
author
Alan Knowles
<alan@roojs.com>
Thu, 21 Mar 2019 06:29:09 +0000
(14:29 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 21 Mar 2019 06:29:09 +0000
(14:29 +0800)
NewBranch.vala
NewBranch.bjs
patch
|
blob
|
history
NewBranch.vala
patch
|
blob
|
history
diff --git
a/NewBranch.bjs
b/NewBranch.bjs
index
74014e7
..
a89df47
100644
(file)
--- a/
NewBranch.bjs
+++ b/
NewBranch.bjs
@@
-551,7
+551,6
@@
},
"label" : "Commit Changes",
"id" : "createbtn",
},
"label" : "Commit Changes",
"id" : "createbtn",
- "| void updateState" : "() {\n\n\tvar ticket_id = _this.ticketsel.selectedTicketId();\n\t\n\tif (ticket_id == \"\") {\n\t\tthis.el.set_sensitive(false);\n\t\treturn;\n\t}\n \n\tthis.el.set_sensitive(true);\n \n}\n",
"* init" : "{\n this.el.get_style_context().add_class(\"suggested-action\");\n}\n",
"xtype" : "Button",
"* pack" : "attach_defaults,4,5,1,2",
"* init" : "{\n this.el.get_style_context().add_class(\"suggested-action\");\n}\n",
"xtype" : "Button",
"* pack" : "attach_defaults,4,5,1,2",
diff --git
a/NewBranch.vala
b/NewBranch.vala
index
3a86bd3
..
a91ee42
100644
(file)
--- a/
NewBranch.vala
+++ b/
NewBranch.vala
@@
-2419,18
+2419,6
@@
public class NewBranch : Object
}
// user defined functions
}
// user defined functions
- public void updateState () {
-
- var ticket_id = _this.ticketsel.selectedTicketId();
-
- if (ticket_id == "") {
- this.el.set_sensitive(false);
- return;
- }
-
- this.el.set_sensitive(true);
-
- }
}
}