[pygobject] Add marshalling of GI_TYPE_TAG_VOID held in a GValue to int



commit 0f6c571755e65b5e77d3d84e4516ef90d8ce0162
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 d5ed7b0..2246d7c 100644
--- a/gi/pygi-argument.c
+++ b/gi/pygi-argument.c
@@ -1899,8 +1899,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]