tests/status_icon.js
[app.Builder.js] / tests / status_icon.js
index a3bd1a0..5728074 100644 (file)
@@ -28,11 +28,11 @@ 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));
+    console.log(JSON.stringify(ret));
     
     menu.popup(null, null, Gtk.StatusIcon.position_menu, status_icon, button, time);
 }