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:
4eba700
)
Builder/RightGtkView.js
author
Alan Knowles
<alan@akbkhome.com>
Tue, 11 May 2010 10:57:12 +0000
(18:57 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Tue, 11 May 2010 10:57:12 +0000
(18:57 +0800)
Builder/RightGtkView.js
patch
|
blob
|
history
diff --git
a/Builder/RightGtkView.js
b/Builder/RightGtkView.js
index
990f2b7
..
4198ffb
100755
(executable)
--- a/
Builder/RightGtkView.js
+++ b/
Builder/RightGtkView.js
@@
-23,6
+23,7
@@
LeftPanel = imports.Builder.LeftPanel.LeftPanel;
RightGtkView = new XObject({
xtype : Gtk.VBox,
+ lastSrc : '',
pack : [ 'append_page', new Gtk.Label({ label : "Gtk View" }) ],
items : [
@@
-224,6
+225,16
@@
RightGtkView = new XObject({
showInWindow: function ()
{
+
+ var x = new imports.sandbox.Context();
+ x.add_globals();
+ try {
+ x.eval(src);
+ } catch( e) {
+ print(e);
+ return;
+ }
+ x.get_global_object()._top.el.show_all();
}