aboutsummaryrefslogtreecommitdiff
path: root/src/SlitTheme.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/SlitTheme.cc')
-rw-r--r--src/SlitTheme.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/SlitTheme.cc b/src/SlitTheme.cc
index a745ec4..8414bd9 100644
--- a/src/SlitTheme.cc
+++ b/src/SlitTheme.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: SlitTheme.cc,v 1.2 2003/08/29 23:52:14 fluxgen Exp $ 22// $Id: SlitTheme.cc,v 1.3 2004/04/26 15:04:37 rathnor Exp $
23 23
24#include "SlitTheme.hh" 24#include "SlitTheme.hh"
25 25
@@ -42,13 +42,9 @@ void SlitTheme::reconfigTheme() {
42 42
43bool SlitTheme::fallback(FbTk::ThemeItem_base &item) { 43bool SlitTheme::fallback(FbTk::ThemeItem_base &item) {
44 if (&item == &m_texture) { 44 if (&item == &m_texture) {
45 // special case for textures since they're using .load() 45 return FbTk::ThemeManager::instance().loadItem(item,
46 FbTk::ThemeItem<FbTk::Texture> tmp_item(m_texture.theme(), 46 "toolbar",
47 "toolbar", "Toolbar"); 47 "Toolbar");
48 tmp_item.load();
49 // copy texture
50 *m_texture = *tmp_item;
51 return true;
52 } else if (item.name().find(".borderWidth") != std::string::npos) { 48 } else if (item.name().find(".borderWidth") != std::string::npos) {
53 return FbTk::ThemeManager::instance().loadItem(item, 49 return FbTk::ThemeManager::instance().loadItem(item,
54 "borderWidth", 50 "borderWidth",