diff options
author | fluxgen <fluxgen> | 2003-06-12 14:09:59 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-06-12 14:09:59 (GMT) |
commit | 7f78b30cbec528a640f92e40c947687f1a709152 (patch) | |
tree | 8f11ae4383b6bc38e83f4736d3db1e7f21303531 /src | |
parent | fb4bee3d5d4fd4bd3fc37b5eb4613147cda9161f (diff) | |
download | fluxbox_paul-7f78b30cbec528a640f92e40c947687f1a709152.zip fluxbox_paul-7f78b30cbec528a640f92e40c947687f1a709152.tar.bz2 |
better error msg
Diffstat (limited to 'src')
-rw-r--r-- | src/FbTk/Theme.cc | 10 |
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() { | |||
55 | template <> | 55 | template <> |
56 | void ThemeItem<FbTk::Font>::setFromString(const char *str) { | 56 | void 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 | ||
124 | template <> | 124 | template <> |
125 | void ThemeItem<FbTk::Color>::setFromString(const char *str) { | 125 | void 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 |