Commit 6525c395 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

add GObject to the list of base types add ref and unref methods to GObject

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
parent 06d51a09
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,
......
......@@ -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;
}
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment