[vala/wip/transform: 213/214] Fully qualify symbols used to transform



commit d497fc5f53a0344f3b18c8c17c134699d7f4fec9
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Thu Nov 17 10:53:24 2016 +0100

    Fully qualify symbols used to transform

 codegen/valagdbusclienttransformer.vala |    4 ++--
 codegen/valagdbusservertransformer.vala |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/codegen/valagdbusclienttransformer.vala b/codegen/valagdbusclienttransformer.vala
index bb2a205..8af30cf 100644
--- a/codegen/valagdbusclienttransformer.vala
+++ b/codegen/valagdbusclienttransformer.vala
@@ -269,7 +269,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 ();
 
@@ -285,7 +285,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 ();
                }
 
diff --git a/codegen/valagdbusservertransformer.vala b/codegen/valagdbusservertransformer.vala
index a63fc94..0e745eb 100644
--- a/codegen/valagdbusservertransformer.vala
+++ b/codegen/valagdbusservertransformer.vala
@@ -79,7 +79,7 @@ public class Vala.GDBusServerTransformer : GDBusClientTransformer {
                                continue;
                        }
                        if (type_name == "GLib.BusName") {
-                               call.add_argument (expression ("(BusName) invocation.get_sender ()"));
+                               call.add_argument (expression ("(GLib.BusName) invocation.get_sender ()"));
                                continue;
                        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]