projects
/
gnome.seed
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
66f312329d36aa70cb45c00c1350668cc0004824
[gnome.seed]
/
tests
/
javascript
/
closure-finalization.js
1
#!/usr/bin/env seed
2
// Returns: 0
3
// STDIN:
4
// STDOUT:\[object GtkVBox\]
5
// STDERR:
6
7
Gtk = imports.gi.Gtk;
8
9
Gtk.init(Seed.argv);
10
11
w = new Gtk.Window();
12
13
// Closure will always be GCed at end of signal.
14
signal = function()
15
{
16
w.foreach(function(widget){print(widget);});
17
};
18
19
vbox = new Gtk.VBox();
20
21
w.add(vbox);
22
23
w.signal.show.connect(signal);
24
25
w.show_all();