README.txt
[gitlive] / XObject.js
index 7ed3d1c..114cda6 100644 (file)
@@ -258,7 +258,7 @@ XObject.prototype = {
          //   XObject.registry[o.xnsid][o.id] = this;
         //}
         
-        var type = this.xtype.type ? GObject.type_name(this.xtype.type) : '';
+        var type = this.xtype && this.xtype.type ? GObject.type_name(this.xtype.type) : '';
         XObject.log("add children to " + type);
         
         var _this=this;
@@ -381,6 +381,13 @@ XObject.prototype = {
         var _li = XObject.createDelegate(fn,this);
         // private listeners that are not copied to GTk.
         
+               if (!this.el) {
+                       print('missing el?');
+                       print(fn);
+                       print(JSON.stringify(this.cfg));
+                       }
+               
+               
         if (typeof(Seed) != 'undefined') {
           //   Seed.print(typeof(_li));
             this.el.signal[sig].connect(_li);
@@ -748,6 +755,7 @@ XObject.extend(XObject,
             }
             
             XObject.log("TRYING BASE OBJECT : " + gname);
+                         
             // in the situation where we have been called and there is a base object
             // defining the behavior..
             // then we should copy the prototypes from the base object into this..