[gnome-builder] G-I: add () around in_signature for GDBus
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] G-I: add () around in_signature for GDBus
- Date: Fri, 30 Oct 2015 21:18:31 +0000 (UTC)
commit 814973c0ea357a30d0e767d6692b9a5e5b34c037
Author: Christian Hergert <chergert redhat com>
Date: Thu Oct 29 23:51:32 2015 -0700
G-I: add () around in_signature for GDBus
Might not be the best idea long term, but convenient for now.
src/Builder.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Builder.py b/src/Builder.py
index 6485e63..a2778d8 100644
--- a/src/Builder.py
+++ b/src/Builder.py
@@ -51,7 +51,7 @@ def DBusMethod(dbus_interface, in_signature=None, out_signature=None, async=Fals
func._dbus_method.out_signature = out_signature or ''
func._dbus_method.in_args = []
- in_signature_list = GLib.Variant.split_signature(in_signature)
+ in_signature_list = GLib.Variant.split_signature('('+in_signature+')')
arg_names = inspect.getargspec(func).args
arg_names.pop(0) # eat "self" argument
if async: arg_names.pop(0) # eat "invocation"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]