vala r1483 - in trunk: . vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1483 - in trunk: . vala
- Date: Thu, 29 May 2008 15:01:47 +0000 (UTC)
Author: juergbi
Date: Thu May 29 15:01:47 2008
New Revision: 1483
URL: http://svn.gnome.org/viewvc/vala?rev=1483&view=rev
Log:
2008-05-29 Juerg Billeter <j bitron ch>
* vala/valainterface.vala:
Fix reference counting for non-GObject interfaces
Modified:
trunk/ChangeLog
trunk/vala/valainterface.vala
Modified: trunk/vala/valainterface.vala
==============================================================================
--- trunk/vala/valainterface.vala (original)
+++ trunk/vala/valainterface.vala Thu May 29 15:01:47 2008
@@ -369,11 +369,23 @@
}
public override string? get_ref_function () {
- return "g_object_ref";
+ foreach (DataType prerequisite in prerequisites) {
+ string ref_func = prerequisite.data_type.get_ref_function ();
+ if (ref_func != null) {
+ return ref_func;
+ }
+ }
+ return null;
}
public override string? get_unref_function () {
- return "g_object_unref";
+ foreach (DataType prerequisite in prerequisites) {
+ string unref_func = prerequisite.data_type.get_unref_function ();
+ if (unref_func != null) {
+ return unref_func;
+ }
+ }
+ return null;
}
public override bool is_subtype_of (TypeSymbol t) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]