projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
308014f
)
NewBranch.bjs
author
Alan Knowles
<alan@roojs.com>
Wed, 13 Feb 2019 06:25:39 +0000
(14:25 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 13 Feb 2019 06:25:39 +0000
(14:25 +0800)
NewBranch.vala
NewBranch.bjs
patch
|
blob
|
history
NewBranch.vala
patch
|
blob
|
history
diff --git
a/NewBranch.bjs
b/NewBranch.bjs
index
92105bf
..
a070f1d
100644
(file)
--- a/
NewBranch.bjs
+++ b/
NewBranch.bjs
@@
-153,6
+153,7
@@
"clicked" : "() => {\n\n\tGLib.debug(\"fire response = 1\");\n\t\n\tvar ticket_id = _this.ticketsel.selectedTicketId();\n\t\n\tif (ticket_id == \"\") {\n\t\t_this.ticketsel.el.get_child().get_style_context().add_class(\"warning\");\n\t\treturn;\n\t}\n\t \n\t_this.el.response(1);\n}"
},
"label" : "Create Branch",
"clicked" : "() => {\n\n\tGLib.debug(\"fire response = 1\");\n\t\n\tvar ticket_id = _this.ticketsel.selectedTicketId();\n\t\n\tif (ticket_id == \"\") {\n\t\t_this.ticketsel.el.get_child().get_style_context().add_class(\"warning\");\n\t\treturn;\n\t}\n\t \n\t_this.el.response(1);\n}"
},
"label" : "Create Branch",
+ "id" : "createbtn",
"* init" : "{\n this.el.get_style_context().add_class(\"suggested-action\");\n}\n",
"xtype" : "Button",
"* pack" : "attach_defaults,4,5,4,5",
"* init" : "{\n this.el.get_style_context().add_class(\"suggested-action\");\n}\n",
"xtype" : "Button",
"* pack" : "attach_defaults,4,5,4,5",
diff --git
a/NewBranch.vala
b/NewBranch.vala
index
f41abbc
..
95238c6
100644
(file)
--- a/
NewBranch.vala
+++ b/
NewBranch.vala
@@
-19,6
+19,7
@@
public class NewBranch : Object
public Xcls_dbcellrenderer dbcellrenderer;
public Xcls_dbmodel dbmodel;
public Xcls_name name;
public Xcls_dbcellrenderer dbcellrenderer;
public Xcls_dbmodel dbmodel;
public Xcls_name name;
+ public Xcls_createbtn createbtn;
public Xcls_btn_not_me btn_not_me;
public Xcls_btn_closed btn_closed;
public Xcls_scrolled_window scrolled_window;
public Xcls_btn_not_me btn_not_me;
public Xcls_btn_closed btn_closed;
public Xcls_scrolled_window scrolled_window;
@@
-216,7
+217,7
@@
public class NewBranch : Object
var child_6 = new Xcls_name( _this );
child_6.ref();
this.el.attach_defaults ( child_6.el , 0,4,4,5 );
var child_6 = new Xcls_name( _this );
child_6.ref();
this.el.attach_defaults ( child_6.el , 0,4,4,5 );
- var child_7 = new Xcls_
Button15
( _this );
+ var child_7 = new Xcls_
createbtn
( _this );
child_7.ref();
this.el.attach_defaults ( child_7.el , 4,5,4,5 );
var child_8 = new Xcls_Box16( _this );
child_7.ref();
this.el.attach_defaults ( child_7.el , 4,5,4,5 );
var child_8 = new Xcls_Box16( _this );
@@
-692,7
+693,7
@@
public class NewBranch : Object
// user defined functions
}
// user defined functions
}
- public class Xcls_
Button15
: Object
+ public class Xcls_
createbtn
: Object
{
public Gtk.Button el;
private NewBranch _this;
{
public Gtk.Button el;
private NewBranch _this;
@@
-701,9
+702,10
@@
public class NewBranch : Object
// my vars (def)
// ctor
// my vars (def)
// ctor
- public Xcls_
Button15
(NewBranch _owner )
+ public Xcls_
createbtn
(NewBranch _owner )
{
_this = _owner;
{
_this = _owner;
+ _this.createbtn = this;
this.el = new Gtk.Button();
// my vars (dec)
this.el = new Gtk.Button();
// my vars (dec)