From fd7668947091b11c9d9d5775edf5f414e4be6173 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 15 Feb 2003 12:47:05 +0000 Subject: dont provide a default icon in the python stuff, itll come from the style --- src/config.cc | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/config.cc') 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; } } -- cgit v1.2.3