[vala/wip/dbusgen: 141/152] Use GLib.ObjectPath instead of string
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/dbusgen: 141/152] Use GLib.ObjectPath instead of string
- Date: Mon, 4 Feb 2019 09:13:02 +0000 (UTC)
commit 690fac1295fa91dd26ba51f0d68de6c9086150d3
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]