projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
12f2dd0
)
XObjectBase/GtkClutterActor.js
author
Alan Knowles
<alan@akbkhome.com>
Fri, 26 Nov 2010 07:40:01 +0000
(15:40 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 26 Nov 2010 07:40:01 +0000
(15:40 +0800)
XObjectBase/GtkClutterActor.js
patch
|
blob
|
history
diff --git
a/XObjectBase/GtkClutterActor.js
b/XObjectBase/GtkClutterActor.js
index
e0d6135
..
1252b81
100644
(file)
--- a/
XObjectBase/GtkClutterActor.js
+++ b/
XObjectBase/GtkClutterActor.js
@@
-9,6
+9,23
@@
GtkClutter = imports.gi.GtkClutter;
// listener is added on show..
// we should really add a hock to destroy it..
// listener is added on show..
// we should really add a hock to destroy it..
+
+GtkCellRenderText = XObject.define(
+ function(cfg) {
+ XObject.call(this, cfg);
+ if (!this.items.length) {
+ XObject.fatal("Actor does not have any children");
+ return;
+ }
+
+ this.items[0].pack = false;
+ },
+ XObject,
+ {
+ pack : 'pack_start'
+ }
+};
+
GtkClutterActor = {
pack : function(parent, item)
GtkClutterActor = {
pack : function(parent, item)
@@
-23,15
+40,7
@@
GtkClutterActor = {
},
},
- onConstruct : function() {
- if (!this.items.length) {
- XObject.fatal("Actor does not have any children");
- return;
- }
-
- this.items[0].pack = false;
-
- },
+
init : function() {
print ("Actor init");
init : function() {
print ("Actor init");