Fixed pygtk initialization when python is 2.7 but PyCapsule isn't used
This commit is contained in:
parent
24bbc8d866
commit
08ad7cdd9d
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user