[pygobject/pygobject-3-8] Add marshalling of GI_TYPE_TAG_VOID held in a GValue to int



commit 7ef801da0559131d155858b44da0514637e5f119
Author: Simon Feltman <sfeltman src gnome org>
Date:   Wed Jul 3 05:26:12 2013 -0700

    Add marshalling of GI_TYPE_TAG_VOID held in a GValue to int
    
    Replace assertion for this case with a simple marshalling of the
    pointer value to a Python int. While not particularly useful
    this allows some callbacks in WebKit to function without causing
    a segfault.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=694233

 gi/pygi-argument.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gi/pygi-argument.c b/gi/pygi-argument.c
index 8764011..7bf23a3 100644
--- a/gi/pygi-argument.c
+++ b/gi/pygi-argument.c
@@ -2106,8 +2106,8 @@ _pygi_argument_from_g_value(const GValue *value,
             arg.v_pointer = g_value_get_boxed (value);
             break;
         case GI_TYPE_TAG_VOID:
-            g_critical("Converting of type '%s' is not implemented", g_type_tag_to_string(type_tag));
-            g_assert_not_reached();
+            arg.v_pointer = g_value_get_pointer (value);
+            break;
     }
 
     return arg;


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