[pygobject/invoke-rewrite] [invoke] missed a bit when removing constructor_class usage



commit fc8b8ce768ac780f7ed9edc63b70dd35194153c0
Author: John (J5) Palmieri <johnp redhat com>
Date:   Wed Jul 13 15:42:26 2011 -0400

    [invoke] missed a bit when removing constructor_class usage

 gi/pygi-invoke-ng.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gi/pygi-invoke-ng.c b/gi/pygi-invoke-ng.c
index 6da58cb..50e3164 100644
--- a/gi/pygi-invoke-ng.c
+++ b/gi/pygi-invoke-ng.c
@@ -102,7 +102,7 @@ _invoke_state_init_from_callable_cache (PyGIInvokeState *state,
         PyObject *constructor_class;
         constructor_class = PyTuple_GetItem (py_args, 0);
 
-        if (state->constructor_class == NULL) {
+        if (constructor_class == NULL) {
             PyErr_Clear ();
             PyErr_Format (PyExc_TypeError,
                           "Constructors require the class to be passed in as an argument, "



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