]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
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 aaf99a885a593e4a5ef8caabfb69c0278584b64a..7060a9870cc944002b6e3e75d0385aeaf367ab12 100644 (file)
@@ -1,3 +1,8 @@
+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,
index 2ae01024e8069eda2269fc81ea4d712c4e77e31c..3aae39c50405d66c9c20fb0efa7d6fca56cc3947 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 d95b2e6cee0782508c3e4699b85492d1bc7f021a..3a62dca424ee95580203665e5ffa002218432f98 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);
        }