[vala/wip/dbusgen: 51/60] Use GLib.ObjectPath instead of string
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/dbusgen: 51/60] Use GLib.ObjectPath instead of string
- Date: Tue, 9 Oct 2018 06:27:11 +0000 (UTC)
commit 37d58cd4d93173c7f87175e9793b84bccf021f86
Author: Chris Daley <chebizarro gmail com>
Date: Sun Nov 26 14:07:43 2017 -0800
Use GLib.ObjectPath instead of string
dbusgen/valadbusvariantmodule.vala | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/dbusgen/valadbusvariantmodule.vala b/dbusgen/valadbusvariantmodule.vala
index 7bdd69e1a..578c76b24 100644
--- a/dbusgen/valadbusvariantmodule.vala
+++ b/dbusgen/valadbusvariantmodule.vala
@@ -43,6 +43,7 @@ public class Vala.DBusVariantModule {
public DataType int64_type;
public DataType uint64_type;
public DataType string_type;
+ public DataType object_path_type;
public DataType float_type;
public DataType double_type;
public TypeSymbol gtype_type;
@@ -82,7 +83,10 @@ public class Vala.DBusVariantModule {
var glib_ns = root_symbol.scope.lookup ("GLib");
- var ghashtable_type = (TypeSymbol) glib_ns.scope.lookup ("HashTable");
+ object_path_type = new ObjectType ((Class) glib_ns.scope.lookup ("ObjectPath"));
+ object_path_type.value_owned = true;
+
+ TypeSymbol ghashtable_type = (TypeSymbol) glib_ns.scope.lookup ("HashTable");
gtype_type = (TypeSymbol) glib_ns.scope.lookup ("Type");
gobject_type = (TypeSymbol) glib_ns.scope.lookup ("Object");
gerror_type = new ErrorType (null, null);
@@ -135,7 +139,7 @@ public class Vala.DBusVariantModule {
} else if (type.equal (VariantType.STRING)) {
return string_type.copy ();
} else if (type.equal (VariantType.OBJECT_PATH)) {
- return string_type.copy ();
+ return object_path_type.copy ();
} else if (type.equal (VariantType.SIGNATURE)) {
return string_type.copy ();
} else if (type.equal (VariantType.HANDLE)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]