X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Builder3%2FWindow.js;h=a3bd736e6038e05e9d3c187cf50ef11802ddc35c;hb=f927f87326fa8196765f0c524cb514a2152f66c3;hp=12f39c00f0e78df51d1f8636386cc3ff664c7196;hpb=58625276be8e4ea93e2e2bc48fa1367a12f56fdb;p=app.Builder.js diff --git a/Builder3/Window.js b/Builder3/Window.js index 12f39c00f..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; @@ -9,6 +9,9 @@ WebKit = imports.gi.WebKit; Vte = imports.gi.Vte; console = imports.console; XObject = imports.XObject.XObject; + + + Window=new XObject({ xtype: Gtk.Window, listeners : { @@ -19,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, @@ -35,24 +38,7 @@ Window=new XObject({ default_width : 800, id : "Window", title : "Application Builder", - init : function() { - this.atoms = { - "STRING" : Gdk.atom_intern("STRING") - }; - this.targetList = new Gtk.TargetList(); - this.targetList.add( this.atoms["STRING"], 0, 0); - //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 = '