From ac1314c3604691632a2388ff2758b51103445852 Mon Sep 17 00:00:00 2001
From: fluxgen <fluxgen>
Date: Sun, 18 Jul 2004 18:46:03 +0000
Subject: fixed fallback for pressed texture

---
 src/ButtonTheme.cc | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/ButtonTheme.cc b/src/ButtonTheme.cc
index 225bbb7..47177cd 100644
--- a/src/ButtonTheme.cc
+++ b/src/ButtonTheme.cc
@@ -22,6 +22,12 @@ bool ButtonTheme::fallback(FbTk::ThemeItem_base &item) {
         return FbTk::ThemeManager::instance().loadItem(item, "borderColor", "BorderColor");
     }
 
+    if (item.name().find(".pressed") != std::string::npos) {
+        // copy texture
+        *m_pressed_texture = texture();
+        return true;
+    }
+
     return ToolTheme::fallback(item);
 }
 
-- 
cgit v0.11.2