fixed fallback for item
fluxgen fluxgen
2 files changed,
10 insertions(+),
2 deletions(-)
M
src/ToolTheme.cc
→
src/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.hh
→
src/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