[vala/wip/transform: 102/104] Use GLib.Variant instead of Variant in the transformer
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/transform: 102/104] Use GLib.Variant instead of Variant in the transformer
- Date: Fri, 14 Mar 2014 23:19:56 +0000 (UTC)
commit 7d8e59f602cb0ec1fde55f123ba398617d95ac64
Author: Luca Bruno <lucabru src gnome org>
Date: Fri Mar 14 23:04:17 2014 +0100
Use GLib.Variant instead of Variant in the transformer
codegen/valagdbusclienttransformer.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valagdbusclienttransformer.vala b/codegen/valagdbusclienttransformer.vala
index fb584a3..e6b8ee9 100644
--- a/codegen/valagdbusclienttransformer.vala
+++ b/codegen/valagdbusclienttransformer.vala
@@ -268,7 +268,7 @@ public class Vala.GDBusClientTransformer : GVariantTransformer {
b.open_if (expression (@"$result == null"));
b.open_try ();
- statements (@"$result = call_sync (\"org.freedesktop.DBus.Properties.Get\", new
Variant (\"(ss)\", \"$dbus_iface_name\", \"$dbus_name\"), GLib.DBusCallFlags.NONE, $timeout, null);");
+ statements (@"$result = call_sync (\"org.freedesktop.DBus.Properties.Get\", new
GLib.Variant (\"(ss)\", \"$dbus_iface_name\", \"$dbus_name\"), GLib.DBusCallFlags.NONE, $timeout, null);");
b.add_catch_uncaught_error ();
b.close ();
@@ -284,7 +284,7 @@ public class Vala.GDBusClientTransformer : GVariantTransformer {
proxy_set = new PropertyAccessor (false, true, false, prop.set_accessor.value_type,
null, prop.set_accessor.source_reference);
push_builder (new CodeBuilder.for_subroutine (proxy_set));
var variant = b.add_temp_declaration (data_type ("GLib.Variant"), expression
("value"));
- statements (@"call_sync (\"org.freedesktop.DBus.Properties.Set\", new Variant
(\"(ssv)\", \"$dbus_iface_name\", \"$dbus_name\", $variant), GLib.DBusCallFlags.NONE, $timeout, null);");
+ statements (@"call_sync (\"org.freedesktop.DBus.Properties.Set\", new GLib.Variant
(\"(ssv)\", \"$dbus_iface_name\", \"$dbus_name\", $variant), GLib.DBusCallFlags.NONE, $timeout, null);");
pop_builder ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]