From 4dd6b88827cb271a29c36282397490da736abf8b Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Mon, 25 Jul 2005 11:35:47 +0000 Subject: [PATCH] PyGEnum_Type is not defined in old pygtk --- moo/mooutils/mooutils-pygtk.override | 2 ++ 1 file changed, 2 insertions(+) diff --git a/moo/mooutils/mooutils-pygtk.override b/moo/mooutils/mooutils-pygtk.override index 7b6db636..7fb76de6 100644 --- a/moo/mooutils/mooutils-pygtk.override +++ b/moo/mooutils/mooutils-pygtk.override @@ -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);