X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=tests%2Fstatus_icon.js;h=07658044ce03ee38f20ebabd5fc5bdc3d20c5083;hb=b28112d39ef063f657d5b18a42d5e5a904855c88;hp=18a57b3fe7c8d24d7f109eaebc059e3801cc2700;hpb=e6e0ebe9fbc75f59092fca7533b70cfd1b4882d5;p=app.Builder.js diff --git a/tests/status_icon.js b/tests/status_icon.js index 18a57b3fe..07658044c 100644 --- a/tests/status_icon.js +++ b/tests/status_icon.js @@ -2,7 +2,7 @@ // Import and initialize GTK+ Gtk = imports.gi.Gtk; -Gdk = imports.gi.Gtk; +Gdk = imports.gi.Gdk; Gtk.init(null, null); // Create the window @@ -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); }