X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Builder3%2FWindow.js;h=a3bd736e6038e05e9d3c187cf50ef11802ddc35c;hb=f927f87326fa8196765f0c524cb514a2152f66c3;hp=cff3b48a7797fd99a2217f2d3a94da600a64a7a8;hpb=fe6f3787f27ca02def8e24cee005a33cb56cc634;p=app.Builder.js diff --git a/Builder3/Window.js b/Builder3/Window.js index cff3b48a7..a3bd736e6 100644 --- a/Builder3/Window.js +++ b/Builder3/Window.js @@ -1,4 +1,4 @@ -Gtk = imports.gi.Gtk; + Gtk = imports.gi.Gtk; Gdk = imports.gi.Gdk; Pango = imports.gi.Pango; GLib = imports.gi.GLib; @@ -10,8 +10,7 @@ Vte = imports.gi.Vte; console = imports.console; XObject = imports.XObject.XObject; - - + Window=new XObject({ xtype: Gtk.Window, @@ -23,15 +22,15 @@ Window=new XObject({ Gtk.main_quit(); }, show : function (self) { - - imports.ProjectManager.ProjectManager.loadConfig(); - - print("HIDEWIN - calling MidPropTree hidewin") - this.get('/MidPropTree').hideWin(); - this.get('/RightPalete').hide(); - this.get('/BottomPane').el.hide(); - //this.get('/Editor').el.show_all(); - + + imports.ProjectManager.ProjectManager.loadConfig(); + + print("HIDEWIN - calling MidPropTree hidewin") + this.get('/MidPropTree').hideWin(); + this.get('/RightPalete').hide(); + this.get('/BottomPane').el.hide(); + //this.get('/Editor').el.show_all(); + } }, border_width : 0, @@ -39,20 +38,7 @@ Window=new XObject({ default_width : 800, id : "Window", title : "Application Builder", - init : function() { - - //imports.ProjectManager.ProjectManager.loadConfig(); - Gtk.rc_parse_string( - "style \"gtkcombobox-style\" {\n" + - " GtkComboBox::appears-as-list = 1\n" + - "}\n"+ - "class \"GtkComboBox\" style \"gtkcombobox-style\"\n"); - XObject.prototype.init.call(this); - this.el.show_all(); - - - - }, + setTitle : function(str) { this.el.set_title(this.title + ' - ' + str); }, @@ -265,7 +251,7 @@ Window=new XObject({ html = html.replace('', project.runhtml + ''); - var jsstr = JSON.stringify(js[0], null, 4); + var jsstr = JSON.(js[0], null, 4); var runbuilder = '