+ /* each list-entry is a list of tuples. if the first of these is none, it's not selectable */
+ if (m_list && cursorValid())
+ {
+ ePyObject item = PyList_GET_ITEM(m_list, m_cursor);
+ if (PyList_Check(item))
+ {
+ item = PyList_GET_ITEM(item, 0);
+ if (item != Py_None)
+ return 1;
+ }
+ else if (m_buildFunc && PyCallable_Check(m_buildFunc))
+ // FIXME .. how we can detect non selectable entrys when we have a buildFunc callback
+ return 1;
+ }
+ return 0;