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