PyGEnum_Type is not defined in old pygtk

This commit is contained in:
Yevgen Muntyan 2005-07-25 11:35:47 +00:00
parent e1d239bca6
commit 4dd6b88827

View File

@ -21,6 +21,7 @@ prefs_set (const char *key, PyObject *val, gboolean ignore_change)
else
moo_prefs_set (key, NULL);
}
#ifdef PyGEnum_Type
else if (PyObject_TypeCheck (val, &PyGEnum_Type))
{
int ival;
@ -31,6 +32,7 @@ prefs_set (const char *key, PyObject *val, gboolean ignore_change)
else
moo_prefs_set_int (key, ival);
}
#endif
else if (PyBool_Check (val))
{
gboolean bool_val = (Py_True == val);