projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
81de542
)
Ticket.bjs
author
Alan Knowles
<alan@roojs.com>
Mon, 24 Dec 2018 07:44:54 +0000
(15:44 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 24 Dec 2018 07:44:54 +0000
(15:44 +0800)
Ticket.vala
Ticket.bjs
patch
|
blob
|
history
Ticket.vala
patch
|
blob
|
history
diff --git
a/Ticket.bjs
b/Ticket.bjs
index
3218db4
..
1daec1c
100644
(file)
--- a/
Ticket.bjs
+++ b/
Ticket.bjs
@@
-24,7
+24,7
@@
"bool modal" : true,
"items" : [
{
"bool modal" : true,
"items" : [
{
- "xtype" : "
V
Box",
+ "xtype" : "Box",
"$ pack" : "get_content_area().add",
"$ xns" : "Gtk",
"items" : [
"$ pack" : "get_content_area().add",
"$ xns" : "Gtk",
"items" : [
@@
-268,16
+268,16
@@
"$ xns" : "Gtk"
}
]
"$ xns" : "Gtk"
}
]
+ },
+ {
+ "id" : "spinner",
+ "bool hexpand" : true,
+ "* pack" : "add",
+ "xtype" : "Spinner",
+ "$ xns" : "Gtk",
+ "bool vexpand" : true
}
]
}
]
- },
- {
- "id" : "spinner",
- "bool hexpand" : true,
- "* pack" : "add",
- "xtype" : "Spinner",
- "$ xns" : "Gtk",
- "bool vexpand" : true
}
]
}
}
]
}
diff --git
a/Ticket.vala
b/Ticket.vala
index
e349e33
..
8989b18
100644
(file)
--- a/
Ticket.vala
+++ b/
Ticket.vala
@@
-49,12
+49,9
@@
public class Ticket : Object
this.el.default_width = 500;
this.el.deletable = true;
this.el.modal = true;
this.el.default_width = 500;
this.el.deletable = true;
this.el.modal = true;
- var child_0 = new Xcls_
V
Box2( _this );
+ var child_0 = new Xcls_Box2( _this );
child_0.ref();
this.el.get_content_area().add ( child_0.el );
child_0.ref();
this.el.get_content_area().add ( child_0.el );
- var child_1 = new Xcls_spinner( _this );
- child_1.ref();
- this.el.add ( child_1.el );
//listeners
this.el.delete_event.connect( (self, event) => {
//listeners
this.el.delete_event.connect( (self, event) => {
@@
-145,19
+142,19
@@
public class Ticket : Object
this.el.run();
}
this.el.run();
}
- public class Xcls_
V
Box2 : Object
+ public class Xcls_Box2 : Object
{
{
- public Gtk.
V
Box el;
+ public Gtk.Box el;
private Ticket _this;
// my vars (def)
// ctor
private Ticket _this;
// my vars (def)
// ctor
- public Xcls_
V
Box2(Ticket _owner )
+ public Xcls_Box2(Ticket _owner )
{
_this = _owner;
{
_this = _owner;
- this.el = new Gtk.
VBox( true
, 0 );
+ this.el = new Gtk.
Box( null
, 0 );
// my vars (dec)
// my vars (dec)
@@
-165,6
+162,9
@@
public class Ticket : Object
var child_0 = new Xcls_Table3( _this );
child_0.ref();
this.el.pack_start ( child_0.el , false,false,0 );
var child_0 = new Xcls_Table3( _this );
child_0.ref();
this.el.pack_start ( child_0.el , false,false,0 );
+ var child_1 = new Xcls_spinner( _this );
+ child_1.ref();
+ this.el.add ( child_1.el );
}
// user defined functions
}
// user defined functions
@@
-1254,7
+1254,6
@@
public class Ticket : Object
}
}
-
public class Xcls_spinner : Object
{
public Gtk.Spinner el;
public class Xcls_spinner : Object
{
public Gtk.Spinner el;
@@
-1280,4
+1279,5
@@
public class Ticket : Object
// user defined functions
}
// user defined functions
}
+
}
}