X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=tests%2Fstatus_icon.js;h=07658044ce03ee38f20ebabd5fc5bdc3d20c5083;hb=9b125f00cbca226731da2fc4a0f6563cf5bb8688;hp=a3bd1a0b7e8c4bb456e62b89d6ed22d3d422148e;hpb=88f5f59e4a0197a621e210b9c1477ab7ffbe32d8;p=app.Builder.js diff --git a/tests/status_icon.js b/tests/status_icon.js index a3bd1a0b7..07658044c 100644 --- a/tests/status_icon.js +++ b/tests/status_icon.js @@ -28,12 +28,15 @@ function active(status_icon, button, time, data) // GtkMenu.popup, calling the Gtk.StatusIcon.position_menu function // var area = new Gdk.Rectangle(); - var orient = new Gtk.Orientation(); + var ret = {}; - status_icon.get_geometry(ret, area, orient); - console.log(JSON.stringify(area)); - console.log(JSON.stringify(orient)); + status_icon.get_geometry(ret); + print(ret.orientation); + print(ret.area.width); + print(ret.area.height); + print(ret.area.x); + print(ret.area.y); menu.popup(null, null, Gtk.StatusIcon.position_menu, status_icon, button, time); }