Builder3/Main.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 3 Jul 2012 15:20:40 +0000 (23:20 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 3 Jul 2012 15:20:40 +0000 (23:20 +0800)
Builder3/Main.js

index 805f63c..31e1be6 100644 (file)
@@ -20,4 +20,16 @@ Gtk.rc_parse_string(
 
 */
 Window.el.show_all();
+
+
+// this ties two elements together...
+// it used to hapen in the init() code for the element, it should be moved to a 'global init for a whole module'
+var pm = imports.ProjectManager.ProjectManager;
+
+var combomodel =  this.get('/LeftProjectTree.combomodel');
+pm.on('changed', function() {
+      print("caught changed hook on project manager - reloading data");
+     _this.loadData(pm.projects);
+
+});
  
\ No newline at end of file