4 Window = imports.Builder3.Window.Window;
6 JSON.x = function (o) {
8 return JSON.(o, function(_, value) {
9 if (typeof value === 'object' && value !== null) {
10 if (seen.indexOf(value) !== -1) return null;
11 else seen.push(value);
19 "STRING" : Gdk.atom_intern("STRING")
21 targetList = new Gtk.TargetList();
22 targetList.add( atoms["STRING"], 0, 0);
27 "style \"gtkcombobox-style\" {\n" +
28 " GtkComboBox::appears-as-list = 1\n" +
30 "class \"GtkComboBox\" style \"gtkcombobox-style\"\n");
36 // this ties two elements together...
37 // it used to hapen in the init() code for the element, it should be moved to a 'global init for a whole module'
38 var pm = imports.ProjectManager.ProjectManager;
40 var combomodel = Window.get('/LeftProjectTree.combomodel');
41 pm.on('changed', function() {
42 print("caught changed hook on project manager - reloading data");
43 combomodel.loadData(pm.projects);