src/Palete/Gir.vala
authorAlan Knowles <alan@roojs.com>
Thu, 7 May 2015 06:56:11 +0000 (14:56 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 7 May 2015 06:56:11 +0000 (14:56 +0800)
src/Palete/Gir.vala

index f42775f..f439770 100644 (file)
@@ -20,29 +20,13 @@ public static int main (string[] args) {
  */
 namespace Palete {
  
-       public abstract class GirBase : GirObject { 
-               
-               public abstract void load();
-               
-               public string doc(string what)
-               {
-                       var ar = what.split(".");
-                       var cls = this.classes.get(ar[1]);
-                       if (ar.length == 2) {
-                               return cls.doctxt != null ? cls.doctxt : "";
-                       }
-                       // return the property.. by default..
-                       var pr = cls.props.get(ar[2]);
-                       return pr.doctxt != null ? pr.doctxt : "";
-
-               }
-       }
+        
     
     
     // Gir - is the libvala based version - 
     
     
-       public class Gir : GirBase {
+       public class Gir : GirObject {
     
                //Gee.Hashmap<string,what> nodes;
                
@@ -52,6 +36,18 @@ namespace Palete {
                         
                }
                 
+               public string doc(string what)
+               {
+                       var ar = what.split(".");
+                       var cls = this.classes.get(ar[1]);
+                       if (ar.length == 2) {
+                               return cls.doctxt != null ? cls.doctxt : "";
+                       }
+                       // return the property.. by default..
+                       var pr = cls.props.get(ar[2]);
+                       return pr.doctxt != null ? pr.doctxt : "";
+
+               }
                
                
                /**
@@ -164,7 +160,6 @@ namespace Palete {
 
                }
 
-