[pygobject] Set the correct meta type for GErrors when marshaling to Python



commit 203fef99205ce0c46b1530b0d480021ee8b8e325
Author: Garrett Regier <Garrett Regier riftio com>
Date:   Tue Aug 5 10:42:46 2014 -0400

    Set the correct meta type for GErrors when marshaling to Python
    
    Otherwise we do not pass the GError into python callbacks and
    we also want to convert these into Python Exceptions.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=727004

 gi/pygi-error.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gi/pygi-error.c b/gi/pygi-error.c
index 2e9150f..b019a09 100644
--- a/gi/pygi-error.c
+++ b/gi/pygi-error.c
@@ -266,7 +266,7 @@ pygi_arg_gerror_setup_from_info (PyGIArgCache  *arg_cache,
 
     if (direction & PYGI_DIRECTION_TO_PYTHON) {
         arg_cache->to_py_marshaller = _pygi_marshal_to_py_gerror;
-        arg_cache->meta_type = PYGI_META_ARG_TYPE_CHILD;
+        arg_cache->meta_type = PYGI_META_ARG_TYPE_PARENT;
     }
 
     return TRUE;


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