From c7dbf0dd65b318f69a5046ec909a330c74a7a8a5 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 19 Aug 2003 21:27:40 +0000 Subject: fixed fallback for item --- src/ToolTheme.cc | 8 +++++++- src/ToolTheme.hh | 4 +++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/ToolTheme.cc b/src/ToolTheme.cc index fb5f2dc..77c6ea4 100644 --- a/src/ToolTheme.cc +++ b/src/ToolTheme.cc @@ -20,7 +20,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: ToolTheme.cc,v 1.2 2003/08/13 09:55:51 fluxgen Exp $ +// $Id: ToolTheme.cc,v 1.3 2003/08/19 21:27:40 fluxgen Exp $ #include "ToolTheme.hh" @@ -41,3 +41,9 @@ void ToolTheme::reconfigTheme() { update(); } + +bool ToolTheme::fallback(FbTk::ThemeItem_base &item) { + if (item.name() == "toolbar.workspace") + return FbTk::ThemeManager::instance().loadItem(item, "toolbar.label", "Toolbar.Label"); + return false; +} diff --git a/src/ToolTheme.hh b/src/ToolTheme.hh index 88166b9..3ffe13b 100644 --- a/src/ToolTheme.hh +++ b/src/ToolTheme.hh @@ -20,7 +20,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: ToolTheme.hh,v 1.2 2003/08/13 09:56:06 fluxgen Exp $ +// $Id: ToolTheme.hh,v 1.3 2003/08/19 21:27:39 fluxgen Exp $ #ifndef TOOLTHEME_HH #define TOOLTHEME_HH @@ -40,6 +40,8 @@ public: ToolTheme(int screen_num, const std::string &name, const std::string &altname); virtual ~ToolTheme(); + bool fallback(FbTk::ThemeItem_base &item); + void reconfigTheme(); // textures const FbTk::Texture &texture() const { return *m_texture; } -- cgit v0.11.2