From: Alan Knowles Date: Thu, 13 May 2010 10:51:47 +0000 (+0800) Subject: Builder/RightGtkView.js X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=860e8dcaadeb41c5bbcaa9561d293dc62861fa19 Builder/RightGtkView.js --- diff --git a/Builder/RightGtkView.js b/Builder/RightGtkView.js index 2636d6595..5b23391de 100755 --- a/Builder/RightGtkView.js +++ b/Builder/RightGtkView.js @@ -238,8 +238,14 @@ RightGtkView = new XObject({ print(e.toString()); return; } - x.get_global_object()._top.el.show_all(); + + var _top = x.get_global_object()._top; + _top.el.set_screen(Gdk.Screen.get_default()); // just in case.. + _top.el.show_all(); + if (_top.el.popup) { + _top.el.popup(null, null, null, null, 3, null); + } }, buildJS: function(data) { @@ -286,10 +292,11 @@ RightGtkView = new XObject({ _top.el.set_screen(Gdk.Screen.get_default()); // just in case.. _top.el.show_all(); + if (_top.el.popup) { + _top.el.popup(null, null, null, null, 3, null); + } - _top.el.popup(null, null, null, null, 3, null); - var pb = _top.el.get_snapshot(r); if (!pb) {