diff options
author | Chris Daley <chebizarro@gmail.com> | 2017-11-26 14:07:43 -0800 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2023-04-29 21:00:17 +0200 |
commit | 55caa5fcc6c8deb07cd76c73e273f8545347c3aa (patch) | |
tree | 515c4798c00a5745ab90f408b8707e31115b37ba | |
parent | 3f85629c9aabf539e867c1e6b671a97afb3f9fc5 (diff) | |
download | vala-55caa5fcc6c8deb07cd76c73e273f8545347c3aa.tar.gz |
Use GLib.ObjectPath instead of string
-rw-r--r-- | dbusgen/valadbusvariantmodule.vala | 8 |
1 files 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)) { |