From 220b5c40f91c6509951ccd0d506a9bd77d9d6bac Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 4 Feb 2003 11:03:57 +0000 Subject: make python config variables very visible by making them all capitals. cleaner nicer documentation in the py modules. make public functions more visible. --- src/actions.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/actions.cc') diff --git a/src/actions.cc b/src/actions.cc index 59aa1a19..28a5756b 100644 --- a/src/actions.cc +++ b/src/actions.cc @@ -153,7 +153,7 @@ void Actions::buttonReleaseHandler(const XButtonEvent &e) // XXX: dont load this every time!!@* long dblclick; - if (!python_get_long("double_click_delay", &dblclick)) + if (!python_get_long("DOUBLE_CLICK_DELAY", &dblclick)) dblclick = 300; if (e.time - _release.time < (unsigned)dblclick && @@ -283,7 +283,7 @@ void Actions::motionHandler(const XMotionEvent &e) int dx = x_root - _posqueue[0]->pos.x(); int dy = y_root - _posqueue[0]->pos.y(); // XXX: dont get this from python every time! - if (!python_get_long("drag_threshold", &threshold)) + if (!python_get_long("DRAG_THRESHOLD", &threshold)) threshold = 0; if (!(std::abs(dx) >= threshold || std::abs(dy) >= threshold)) return; // not at the threshold yet -- cgit v1.2.3