+2009-01-09 Jürg Billeter <j@bitron.ch>
+
+ * vala/valacodenode.vala:
+
+ Add CodeNode.get_type_name method
+
+ * vapi/gobject-2.0.vapi:
+
+ Add G_TYPE_FROM_INSTANCE binding
+
2009-01-09 Jürg Billeter <j@bitron.ch>
* vapi/packages/gstreamer-netbuffer-0.10/:
/* valacodenode.vala
*
- * Copyright (C) 2006-2008 Jürg Billeter
+ * Copyright (C) 2006-2009 Jürg Billeter
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
public string get_temp_name () {
return "." + (++last_temp_nr).to_string ();
}
+
+ public weak string get_type_name () {
+ return Type.from_instance (this).name ();
+ }
}
/* gobject-2.0.vala
*
- * Copyright (C) 2006-2008 Jürg Billeter, Raffaele Sandrini
+ * Copyright (C) 2006-2009 Jürg Billeter
+ * Copyright (C) 2006-2008 Raffaele Sandrini
* Copyright (C) 2007 Mathias Hasselmann
*
* This library is free software; you can redistribute it and/or
public bool is_interface ();
[CCode (cname = "G_TYPE_IS_VALUE_TYPE")]
public bool is_value_type ();
-
+
+ [CCode (cname = "G_TYPE_FROM_INSTANCE")]
+ public static Type from_instance (void* instance);
+
public Type[] children ();
public uint depth ();
public static Type from_name (string name);