[pygobject] [gi] Added support for GVariant arguments



commit 0463295cd046bd6382ad9dc71ea1518858d63c5f
Author: Sebastian Pölsterl <sebp k-d-w org>
Date:   Mon Apr 11 18:34:31 2011 +0200

    [gi] Added support for GVariant arguments
    
    This is required in order for the "g-signal" signal of GDBusProxy to work properly and thus to properly receive DBus signals with any type of argument.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=647477

 gi/pygi-argument.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gi/pygi-argument.c b/gi/pygi-argument.c
index 58f6fb0..d2be476 100644
--- a/gi/pygi-argument.c
+++ b/gi/pygi-argument.c
@@ -1844,6 +1844,8 @@ _pygi_argument_from_g_value(const GValue *value,
                 case GI_INFO_TYPE_UNION:
                     if (G_VALUE_HOLDS(value, G_TYPE_BOXED)) {
                         arg.v_pointer = g_value_get_boxed (value);
+                    } else if (G_VALUE_HOLDS(value, G_TYPE_VARIANT)) {
+                        arg.v_pointer = g_value_get_variant (value);
                     } else {
                         arg.v_pointer = g_value_get_pointer (value);
                     }



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