diff options
author | fluxgen <fluxgen> | 2003-06-15 21:02:41 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-06-15 21:02:41 (GMT) |
commit | 2dff875e65947d806f7134807c0d4a6a8a859367 (patch) | |
tree | dfda1b4380b7d66b7def6a74f0207e1f642e8764 | |
parent | 80006acde50788d06318d6644bdfda8c1728f1b8 (diff) | |
download | fluxbox-2dff875e65947d806f7134807c0d4a6a8a859367.zip fluxbox-2dff875e65947d806f7134807c0d4a6a8a859367.tar.bz2 |
minor error msg fix for font loading
-rw-r--r-- | src/FbTk/Theme.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/FbTk/Theme.cc b/src/FbTk/Theme.cc index da3f300..82bda06 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.6 2003/06/12 14:09:59 fluxgen Exp $ | 22 | // $Id: Theme.cc,v 1.7 2003/06/15 21:02:41 fluxgen Exp $ |
23 | 23 | ||
24 | #include "Theme.hh" | 24 | #include "Theme.hh" |
25 | 25 | ||
@@ -55,7 +55,15 @@ 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<<"FbTk::Theme: Error loading font for \""<<name()<<"\" or \""<<altName()<<"\": "<<str<<endl; | 58 | cerr<<"FbTk::Theme: Error loading font "<< |
59 | ((m_value.isAntialias() || m_value.utf8()) ? "(" : "")<< | ||
60 | |||
61 | (m_value.isAntialias() ? "antialias" : "")<< | ||
62 | (m_value.utf8() ? " utf8" : "")<< | ||
63 | |||
64 | ((m_value.isAntialias() || m_value.utf8()) ? ") " : "")<< | ||
65 | "for \""<<name()<<"\" or \""<<altName()<<"\": "<<str<<endl; | ||
66 | |||
59 | cerr<<"FbTk::Theme: Setting default value"<<endl; | 67 | cerr<<"FbTk::Theme: Setting default value"<<endl; |
60 | setDefaultValue(); | 68 | setDefaultValue(); |
61 | } | 69 | } |