From: Alan Knowles Date: Mon, 1 Nov 2010 03:25:34 +0000 (+0800) Subject: Sample/Editor.js X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=e3074f3dea0b0de950461a8fa7152067f859b2b6 Sample/Editor.js --- diff --git a/Sample/Editor.js b/Sample/Editor.js index 784600718..82a603758 100644 --- a/Sample/Editor.js +++ b/Sample/Editor.js @@ -171,11 +171,7 @@ Editor=new XObject({ // print('var res = ' + str); Seed.check_syntax('var res = ' + str); - this.get('/RightEditor.view').el.modify_base(Gtk.StateType.NORMAL, new Gdk.Color({ - red: 0xFFFF, green: 0xFFFF , blue : 0xFFFF - })); - - return true; + } catch (e) { this.get('/RightEditor.view').el.modify_base(Gtk.StateType.NORMAL, new Gdk.Color({ @@ -187,6 +183,11 @@ Editor=new XObject({ //console.dump(e); return false; } + this.get('/RightEditor.view').el.modify_base(Gtk.StateType.NORMAL, new Gdk.Color({ + red: 0xFFFF, green: 0xFFFF , blue : 0xFFFF + })); + + return true; }, toString : function() {