rm a XXX.. comment it out :)
This commit is contained in:
parent
0571837e50
commit
4147215afa
3 changed files with 10 additions and 9 deletions
|
@ -241,7 +241,6 @@ bool Bindings::addKey(const StringVect &keylist, PyObject *callback)
|
||||||
|
|
||||||
if (t) {
|
if (t) {
|
||||||
// already bound to something
|
// already bound to something
|
||||||
// XXX: look if callback is already bound to this key?
|
|
||||||
t->callbacks.push_back(callback);
|
t->callbacks.push_back(callback);
|
||||||
destroytree(tree);
|
destroytree(tree);
|
||||||
} else {
|
} else {
|
||||||
|
@ -261,7 +260,7 @@ bool Bindings::addKey(const StringVect &keylist, PyObject *callback)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
bool Bindings::removeKey(const StringVect &keylist, PyObject *callback)
|
bool Bindings::removeKey(const StringVect &keylist, PyObject *callback)
|
||||||
{
|
{
|
||||||
assert(false); // XXX: function not implemented yet
|
assert(false); // XXX: function not implemented yet
|
||||||
|
@ -295,7 +294,7 @@ bool Bindings::removeKey(const StringVect &keylist, PyObject *callback)
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
void Bindings::setResetKey(const std::string &key)
|
void Bindings::setResetKey(const std::string &key)
|
||||||
{
|
{
|
||||||
|
|
|
@ -103,12 +103,12 @@ public:
|
||||||
*/
|
*/
|
||||||
bool addKey(const StringVect &keylist, PyObject *callback);
|
bool addKey(const StringVect &keylist, PyObject *callback);
|
||||||
|
|
||||||
//! Removes a key binding
|
////! Removes a key binding
|
||||||
/*!
|
///*!
|
||||||
@return The callbackid of the binding, or '< 0' if there was no binding to
|
// @return The callbackid of the binding, or '< 0' if there was no binding to
|
||||||
be removed.
|
// be removed.
|
||||||
*/
|
//*/
|
||||||
bool removeKey(const StringVect &keylist, PyObject *callback);
|
//bool removeKey(const StringVect &keylist, PyObject *callback);
|
||||||
|
|
||||||
//! Removes all key bindings
|
//! Removes all key bindings
|
||||||
void removeAllKeys();
|
void removeAllKeys();
|
||||||
|
|
|
@ -189,6 +189,7 @@ PyObject *kbind(PyObject *keylist, ob::KeyContext::KC context, PyObject *func)
|
||||||
Py_INCREF(Py_None); return Py_None;
|
Py_INCREF(Py_None); return Py_None;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
PyObject *kunbind(PyObject *keylist, PyObject *func)
|
PyObject *kunbind(PyObject *keylist, PyObject *func)
|
||||||
{
|
{
|
||||||
if (!PyList_Check(keylist)) {
|
if (!PyList_Check(keylist)) {
|
||||||
|
@ -217,6 +218,7 @@ PyObject *kunbind(PyObject *keylist, PyObject *func)
|
||||||
}
|
}
|
||||||
Py_INCREF(Py_None); return Py_None;
|
Py_INCREF(Py_None); return Py_None;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
void kunbind_all()
|
void kunbind_all()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue