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:
c4dc5ad
)
XObject.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 13 May 2010 10:41:46 +0000
(18:41 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 13 May 2010 10:41:46 +0000
(18:41 +0800)
XObject.js
patch
|
blob
|
history
diff --git
a/XObject.js
b/XObject.js
index
e808c0a
..
9a3c994
100644
(file)
--- a/
XObject.js
+++ b/
XObject.js
@@
-75,7
+75,17
@@
function XObject (cfg) {
}
this.items = this.items || [];
// pack can be false!
- this.pack = typeof(this.pack) == 'undefined' ? ['add'] : this.pack;
+ if (typeof(this.pack) == 'undefined') {
+ var Gtk = imports.gi.Gtk;
+ this.pack = [ 'add' ]
+ switch (true) {
+ // any others!!
+ case (this.xtype == Gtk.Menu) this.pack = [ 'append' ]; break;
+
+ }
+
+ }
+
}