diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-15 12:47:05 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-15 12:47:05 +0000 |
| commit | fd7668947091b11c9d9d5775edf5f414e4be6173 (patch) | |
| tree | 8ef58cb6ea5717998edf459220374e8474b83070 /src/config.cc | |
| parent | d2dcef46752df01312cbb3c5a89b3227c6959087 (diff) | |
dont provide a default icon in the python stuff, itll come from the style
Diffstat (limited to 'src/config.cc')
| -rw-r--r-- | src/config.cc | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/config.cc b/src/config.cc index e5ec74d4..8d569693 100644 --- a/src/config.cc +++ b/src/config.cc @@ -69,27 +69,10 @@ Config::Config() drag_threshold = 3; if (!python_get_long("NUMBER_OF_DESKTOPS", (long*)&num_desktops)) num_desktops = 1; - - otk::ustring s; - long w, h; - if (python_get_string("DEFAULT_ICON", &s) && s.bytes() > 2 && - python_get_long("DEFAULT_ICON_WIDTH", &w) && - python_get_long("DEFAULT_ICON_HEIGHT", &h) && - (unsigned)(w * h) == s.bytes() / sizeof(unsigned long)) { - default_icon = new unsigned long[s.bytes() / sizeof(unsigned long) + 2]; - default_icon[0] = w; - default_icon[1] = h; - memcpy(default_icon + 2, s.data(), s.bytes()); - } else { - default_icon = 0; - } - - icon_length = s.bytes(); } Config::~Config() { - if (default_icon) delete [] default_icon; } } |
