add GObject to the list of base types add ref and unref methods to GObject
authorJürg Billeter <j@bitron.ch>
Tue, 20 Mar 2007 17:11:46 +0000 (17:11 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Tue, 20 Mar 2007 17:11:46 +0000 (17:11 +0000)
2007-03-20  Jürg Billeter  <j@bitron.ch>

* vala/valasymbolresolver.vala: add GObject to the list of base types
* vapi/glib-2.0.vala: add ref and unref methods to GObject

svn path=/trunk/; revision=248

vala/ChangeLog
vala/vala/valasymbolresolver.vala
vala/vapi/glib-2.0.vala

index aaf99a8..7060a98 100644 (file)
@@ -1,5 +1,10 @@
 2007-03-20  Jürg Billeter  <j@bitron.ch>
 
+       * vala/valasymbolresolver.vala: add GObject to the list of base types
+       * vapi/glib-2.0.vala: add ref and unref methods to GObject
+
+2007-03-20  Jürg Billeter  <j@bitron.ch>
+
        * vala/valaparser.vala, vala/valasemanticanalyzer.vala,
          vala/valamemorymanager.vala, vala/valacodegenerator.vala,
          vala/valacallback.vala, vala/valainvocationexpression.vala,
index 2ae0102..3aae39c 100644 (file)
@@ -83,6 +83,9 @@ public class Vala.SymbolResolver : CodeVisitor {
                        }
                }
                if (cl.base_class == null && cl != object_class) {
+                       var object_type = new TypeReference ();
+                       object_type.data_type = object_class;
+                       cl.add_base_type (object_type);
                        cl.base_class = object_class;
                }
        
index d95b2e6..3a62dca 100644 (file)
@@ -274,6 +274,9 @@ namespace GLib {
 
        [CCode (cheader_filename = "glib-object.h")]
        public abstract class Object {
+               public Object @ref ();
+               public void unref ();
+               public Object ref_sink ();
                [NoArrayLength ()]
                public virtual Object constructor (Type type, uint n_construct_properties, ObjectConstructParam[] construct_properties);
        }