[vala/staging] Fix DataType.is_weak for struct types
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] Fix DataType.is_weak for struct types
- Date: Tue, 27 May 2014 09:40:48 +0000 (UTC)
commit a4812447ff0cc2489eafbaffd616779fa235d59d
Author: Luca Bruno <lucabru src gnome org>
Date: Sun Sep 11 13:25:16 2011 +0200
Fix DataType.is_weak for struct types
Fixes bug 658720
vala/valadatatype.vala | 4 +++-
vapi/metadata/Gio-2.0.metadata | 1 +
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/vala/valadatatype.vala b/vala/valadatatype.vala
index 352885b..90528b0 100644
--- a/vala/valadatatype.vala
+++ b/vala/valadatatype.vala
@@ -473,7 +473,9 @@ public abstract class Vala.DataType : CodeNode {
return true;
}
- // TODO return true for structs with destroy
+ if (data_type is Struct) {
+ return ((Struct) data_type).is_disposable ();
+ }
return false;
}
diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata
index 4ef5801..657fa81 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -49,6 +49,7 @@ bus_watch_name_with_closures name="watch_name"
dbus_* parent="GLib.DBus" name="dbus_(.*)"
dbus_error_* parent="GLib.DBusError" name="dbus_error_(.*)"
dbus_address_get_for_bus_sync parent="GLib.BusType" name="get_address_sync"
+dbus_gvariant_to_gvalue.out_gvalue unowned=false
Action
.parameter_type nullable
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]