projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c60236e
)
NewBranch.bjs
author
Alan Knowles
<alan@roojs.com>
Thu, 21 Mar 2019 06:30:31 +0000
(14:30 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 21 Mar 2019 06:30:31 +0000
(14:30 +0800)
NewBranch.vala
NewBranch.bjs
patch
|
blob
|
history
NewBranch.vala
patch
|
blob
|
history
diff --git
a/NewBranch.bjs
b/NewBranch.bjs
index
70bf5dd
..
5c39d8f
100644
(file)
--- a/
NewBranch.bjs
+++ b/
NewBranch.bjs
@@
-554,7
+554,8
@@
"* init" : "{\n this.el.get_style_context().add_class(\"suggested-action\");\n}\n",
"xtype" : "Button",
"* pack" : "attach_defaults,0,5,2,3",
"* init" : "{\n this.el.get_style_context().add_class(\"suggested-action\");\n}\n",
"xtype" : "Button",
"* pack" : "attach_defaults,0,5,2,3",
- "$ xns" : "Gtk"
+ "$ xns" : "Gtk",
+ "| return_type XXXX" : "() {\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"
}
]
},
}
]
},
diff --git
a/NewBranch.vala
b/NewBranch.vala
index
7fd6f64
..
bbdf786
100644
(file)
--- a/
NewBranch.vala
+++ b/
NewBranch.vala
@@
-2419,6
+2419,18
@@
public class NewBranch : Object
}
// user defined functions
}
// user defined functions
+ public return_type XXXX () {
+
+ var ticket_id = _this.ticketsel.selectedTicketId();
+
+ if (ticket_id == "") {
+ this.el.set_sensitive(false);
+ return;
+ }
+
+ this.el.set_sensitive(true);
+
+ }
}
}