From 860e8dcaadeb41c5bbcaa9561d293dc62861fa19 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 13 May 2010 18:51:47 +0800 Subject: [PATCH] Builder/RightGtkView.js --- Builder/RightGtkView.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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) { -- 2.39.2