summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-04 11:03:57 +0000
committerDana Jansens <danakj@orodu.net>2003-02-04 11:03:57 +0000
commit220b5c40f91c6509951ccd0d506a9bd77d9d6bac (patch)
tree8919e4cad1b94beff0967f59418aedaad0f952d7 /src
parent7e3a0b227c26739cf562fe58769487976b7be604 (diff)
make python config variables very visible by making them all capitals. cleaner nicer documentation in the py modules. make public functions more visible.
Diffstat (limited to 'src')
-rw-r--r--src/actions.cc4
-rw-r--r--src/frame.cc2
-rw-r--r--src/screen.cc6
3 files changed, 6 insertions, 6 deletions
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
diff --git a/src/frame.cc b/src/frame.cc
index ab21daff..57b338c8 100644
--- a/src/frame.cc
+++ b/src/frame.cc
@@ -173,7 +173,7 @@ void Frame::adjustSize()
const int sep = bevel + 1;
otk::ustring layout;
- if (!python_get_string("titlebar_layout", &layout))
+ if (!python_get_string("TITLEBAR_LAYOUT", &layout))
layout = "ILMC";
// this code ensures that the string only has one of each possible
diff --git a/src/screen.cc b/src/screen.cc
index c42ceeea..db0cb862 100644
--- a/src/screen.cc
+++ b/src/screen.cc
@@ -77,7 +77,7 @@ Screen::Screen(int screen)
// XXX: initialize the screen's style
/*
otk::ustring stylepath;
- python_get_string("theme", &stylepath);
+ python_get_string("THEME", &stylepath);
otk::Configuration sconfig(false);
sconfig.setFile(otk::expandTilde(stylepath.c_str()));
if (!sconfig.load()) {
@@ -103,7 +103,7 @@ Screen::Screen(int screen)
// Set the net_desktop_names property
std::vector<otk::ustring> names;
- python_get_stringlist("desktop_names", &names);
+ python_get_stringlist("DESKTOP_NAMES", &names);
otk::Property::set(_info->rootWindow(),
otk::Property::atoms.net_desktop_names,
otk::Property::utf8, names);
@@ -112,7 +112,7 @@ Screen::Screen(int screen)
_desktop = 0;
- if (!python_get_long("number_of_desktops", &_num_desktops))
+ if (!python_get_long("NUMBER_OF_DESKTOPS", &_num_desktops))
_num_desktops = 1;
changeNumDesktops(_num_desktops); // set the hint