diff options
author | fluxgen <fluxgen> | 2003-08-19 21:27:40 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-08-19 21:27:40 (GMT) |
commit | c7dbf0dd65b318f69a5046ec909a330c74a7a8a5 (patch) | |
tree | 59af165b616f055a59a05fc48803b15c9abe26dd | |
parent | be89656dea556f9d62d855180b34f42dd10c28d8 (diff) | |
download | fluxbox_lack-c7dbf0dd65b318f69a5046ec909a330c74a7a8a5.zip fluxbox_lack-c7dbf0dd65b318f69a5046ec909a330c74a7a8a5.tar.bz2 |
fixed fallback for item
-rw-r--r-- | src/ToolTheme.cc | 8 | ||||
-rw-r--r-- | 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 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: ToolTheme.cc,v 1.2 2003/08/13 09:55:51 fluxgen Exp $ | 23 | // $Id: ToolTheme.cc,v 1.3 2003/08/19 21:27:40 fluxgen Exp $ |
24 | 24 | ||
25 | #include "ToolTheme.hh" | 25 | #include "ToolTheme.hh" |
26 | 26 | ||
@@ -41,3 +41,9 @@ void ToolTheme::reconfigTheme() { | |||
41 | update(); | 41 | update(); |
42 | } | 42 | } |
43 | 43 | ||
44 | |||
45 | bool ToolTheme::fallback(FbTk::ThemeItem_base &item) { | ||
46 | if (item.name() == "toolbar.workspace") | ||
47 | return FbTk::ThemeManager::instance().loadItem(item, "toolbar.label", "Toolbar.Label"); | ||
48 | return false; | ||
49 | } | ||
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 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: ToolTheme.hh,v 1.2 2003/08/13 09:56:06 fluxgen Exp $ | 23 | // $Id: ToolTheme.hh,v 1.3 2003/08/19 21:27:39 fluxgen Exp $ |
24 | 24 | ||
25 | #ifndef TOOLTHEME_HH | 25 | #ifndef TOOLTHEME_HH |
26 | #define TOOLTHEME_HH | 26 | #define TOOLTHEME_HH |
@@ -40,6 +40,8 @@ public: | |||
40 | ToolTheme(int screen_num, const std::string &name, const std::string &altname); | 40 | ToolTheme(int screen_num, const std::string &name, const std::string &altname); |
41 | virtual ~ToolTheme(); | 41 | virtual ~ToolTheme(); |
42 | 42 | ||
43 | bool fallback(FbTk::ThemeItem_base &item); | ||
44 | |||
43 | void reconfigTheme(); | 45 | void reconfigTheme(); |
44 | // textures | 46 | // textures |
45 | const FbTk::Texture &texture() const { return *m_texture; } | 47 | const FbTk::Texture &texture() const { return *m_texture; } |