/+junk/gjs_values

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/gjs_values
4 by Gustav Hartvigsson
* got the signaling working... I think.
1
imports.searchPath.unshift('.');
1 by Gustav Hartvigsson
initial messy code
2
const Lang = imports.lang;
3
4
const Values = imports.values;
5
6
function main (argv) {
4 by Gustav Hartvigsson
* got the signaling working... I think.
7
  var v = new Values.Values ({tellers: ["hello", "world"], domain: "Sweden"});
8
  
9
  v.listen ("hello", function () {
10
    print ("Hello");
11
  });
12
  v.listen ("hello", function () {
13
    print ("Hello again!");
14
  });
15
  
16
  v.listen ("world", function () {
17
    print ("world");
18
  });
19
  v.listen ("world", function () {
20
    print ("World again!");
21
  });
22
  
23
  v.tell ("hello");
24
  v.tell ("world");
25
  
26
  print ();
1 by Gustav Hartvigsson
initial messy code
27
}
28
29
main (ARGV);