src/Palete/Gtk.vala
authorAlan Knowles <alan@roojs.com>
Fri, 29 May 2015 03:51:41 +0000 (11:51 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 29 May 2015 03:51:41 +0000 (11:51 +0800)
src/Palete/Gtk.vala

index a52151a..c6c44e2 100644 (file)
@@ -337,10 +337,13 @@ namespace Palete {
                                curtype = '*' +  node.fqn();
                                cur_instance = true;
                        }
-                       if (parts[0] == "Roo") {        
-                               curtype = "Roo";
-                               cur_instance = false;
-                       }
+                       // all Gtk.... etc.. types...
+                       
+                       
+                       //if (parts[0] == "Roo") {      
+                       //      curtype = "Roo";
+                       //      cur_instance = false;
+                       //}
                        
                        var prevbits = parts[0] + ".";
                        for(var i =1; i < parts.length; i++) {
@@ -349,7 +352,7 @@ namespace Palete {
                                
                                // look up all the properties of the type...
                                var cls = this.getClass(curtype);
-                               if (cls == null) {
+                               if (cls == null && curtype[0] != '*') {
                                        print("could not get class of curtype %s\n", curtype);
                                        return ret;
                                }