if (t) {
// already bound to something
- // XXX: look if callback is already bound to this key?
t->callbacks.push_back(callback);
destroytree(tree);
} else {
return true;
}
-
+/*
bool Bindings::removeKey(const StringVect &keylist, PyObject *callback)
{
assert(false); // XXX: function not implemented yet
}
return false;
}
-
+*/
void Bindings::setResetKey(const std::string &key)
{
MouseAction::MA action, PyObject *callback)
{
assert(context >= 0 && context < MouseContext::NUM_MOUSE_CONTEXT);
+ assert(action >= 0 && action < MouseAction::NUM_MOUSE_ACTION);
Binding b(0,0);
if (!translate(but, b, false))