aboutsummaryrefslogtreecommitdiff
path: root/src/SlitTheme.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2004-04-26 15:04:37 (GMT)
committerrathnor <rathnor>2004-04-26 15:04:37 (GMT)
commitd4a871785130ab0d6533bef4f1ec55c4cfd3b8df (patch)
treef07025c5527733c88043ca61316c0af62daf598d /src/SlitTheme.cc
parentef6bf03ca19c0c96943894f9d0f0db9bc0bd58fc (diff)
downloadfluxbox-d4a871785130ab0d6533bef4f1ec55c4cfd3b8df.zip
fluxbox-d4a871785130ab0d6533bef4f1ec55c4cfd3b8df.tar.bz2
toolbar themeing fixes
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",