src/Palete/Roo.vala
authorAlan Knowles <alan@roojs.com>
Thu, 28 May 2015 12:05:24 +0000 (20:05 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 28 May 2015 12:05:24 +0000 (20:05 +0800)
src/Palete/Roo.vala

index ee5efa0..b60f33a 100644 (file)
@@ -306,8 +306,20 @@ namespace Palete {
                                        // check methods?? - we do not export that at present..
                                        return ret;      //no idea...
                                }
-                               // not a 
-                                       
+                               
+                               // not a instance..
+                               //look for child classes.
+                               var citer = this.classes.map_iter();
+                               while (citer.next()) {
+                                       var scls = citer.get_key();
+                                       var look = prevbits + parts[i];
+                                       if (scls.indexOf(look,0) != 0) {
+                                               continue;
+                                       }
+                                       // got a starting match..
+                                       curtype = look;
+                                       cur_instance = false;
+                               }
                                        
                                
                        }