projects
/
app.Builder.js
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests/enum.vala
[app.Builder.js]
/
tests
/
status_icon.js
diff --git
a/tests/status_icon.js
b/tests/status_icon.js
index
18a57b3
..
0765804
100644
(file)
--- a/
tests/status_icon.js
+++ b/
tests/status_icon.js
@@
-2,7
+2,7
@@
// Import and initialize GTK+
Gtk = imports.gi.Gtk;
// Import and initialize GTK+
Gtk = imports.gi.Gtk;
-Gdk = imports.gi.G
t
k;
+Gdk = imports.gi.G
d
k;
Gtk.init(null, null);
// Create the window
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();
// GtkMenu.popup, calling the Gtk.StatusIcon.position_menu function
//
var area = new Gdk.Rectangle();
- var orient = new Gtk.Orientation();
+
var ret = {};
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);
}
menu.popup(null, null, Gtk.StatusIcon.position_menu, status_icon, button, time);
}