projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8332764
)
add an assert to catch bad stuff from the python
author
Dana Jansens
<danakj@orodu.net>
Tue, 4 Feb 2003 12:46:04 +0000
(12:46 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Tue, 4 Feb 2003 12:46:04 +0000
(12:46 +0000)
src/bindings.cc
patch
|
blob
|
history
diff --git
a/src/bindings.cc
b/src/bindings.cc
index
df1de3e
..
5ae389b
100644
(file)
--- a/
src/bindings.cc
+++ b/
src/bindings.cc
@@
-481,6
+481,7
@@
bool Bindings::addButton(const std::string &but, MouseContext::MC context,
MouseAction::MA action, PyObject *callback)
{
assert(context >= 0 && context < MouseContext::NUM_MOUSE_CONTEXT);
+ assert(action >= 0 && context < MouseContext::NUM_MOUSE_ACTION);
Binding b(0,0);
if (!translate(but, b, false))