[pygobject/pygobject-2-28] [gi] Added support for GVariant arguments



commit 666ec192a4369e2fae508261a7a81b34326fc227
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 ee14b49..ad02ff7 100644
--- a/gi/pygi-argument.c
+++ b/gi/pygi-argument.c
@@ -1863,6 +1863,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]