Fixed pygtk initialization when python is 2.7 but PyCapsule isn't used

This commit is contained in:
Yevgen Muntyan 2011-04-02 11:17:33 -07:00
parent 24bbc8d866
commit 08ad7cdd9d

View File

@ -39,12 +39,12 @@ get_object_pointer_because_python_folks_are_funny (const char *module,
ret = PyCapsule_GetPointer (cobject, name);
g_free (name);
}
#else
else
#endif
if (cobject && PyCObject_Check(cobject))
{
ret = PyCObject_AsVoidPtr (cobject);
}
#endif
if (!ret)
{