aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/Theme.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/FbTk/Theme.cc b/src/FbTk/Theme.cc
index dc5a289..da3f300 100644
--- a/src/FbTk/Theme.cc
+++ b/src/FbTk/Theme.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Theme.cc,v 1.5 2003/05/18 22:12:25 fluxgen Exp $ 22// $Id: Theme.cc,v 1.6 2003/06/12 14:09:59 fluxgen Exp $
23 23
24#include "Theme.hh" 24#include "Theme.hh"
25 25
@@ -55,8 +55,8 @@ void ThemeItem<FbTk::Font>::setDefaultValue() {
55template <> 55template <>
56void ThemeItem<FbTk::Font>::setFromString(const char *str) { 56void ThemeItem<FbTk::Font>::setFromString(const char *str) {
57 if (m_value.load(str) == false) { 57 if (m_value.load(str) == false) {
58 cerr<<"Failed to load font: "<<str<<endl; 58 cerr<<"FbTk::Theme: Error loading font for \""<<name()<<"\" or \""<<altName()<<"\": "<<str<<endl;
59 cerr<<"Setting default value"<<endl; 59 cerr<<"FbTk::Theme: Setting default value"<<endl;
60 setDefaultValue(); 60 setDefaultValue();
61 } 61 }
62 62
@@ -123,8 +123,10 @@ void ThemeItem<FbTk::Color>::setDefaultValue() {
123 123
124template <> 124template <>
125void ThemeItem<FbTk::Color>::setFromString(const char *str) { 125void ThemeItem<FbTk::Color>::setFromString(const char *str) {
126 if (!m_value.setFromString(str, m_tm.screenNum())) 126 if (!m_value.setFromString(str, m_tm.screenNum())) {
127 cerr<<"FbTk::Theme: Error loading color value for \""<<name()<<"\" or \""<<altName()<<"\"."<<endl;
127 setDefaultValue(); 128 setDefaultValue();
129 }
128} 130}
129 131
130// does nothing 132// does nothing