all repos — fluxbox @ c7dbf0dd65b318f69a5046ec909a330c74a7a8a5

custom fork of the fluxbox windowmanager

fixed fallback for item
fluxgen fluxgen
commit

c7dbf0dd65b318f69a5046ec909a330c74a7a8a5

parent

be89656dea556f9d62d855180b34f42dd10c28d8

2 files changed, 10 insertions(+), 2 deletions(-)

jump to
M src/ToolTheme.ccsrc/ToolTheme.cc

@@ -20,7 +20,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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 @@ // update text theme

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; +}
M src/ToolTheme.hhsrc/ToolTheme.hh

@@ -20,7 +20,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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

@@ -39,6 +39,8 @@ class ToolTheme: public FbTk::Theme, public TextTheme {

public: ToolTheme(int screen_num, const std::string &name, const std::string &altname); virtual ~ToolTheme(); + + bool fallback(FbTk::ThemeItem_base &item); void reconfigTheme(); // textures