diff options
author | simonb <simonb> | 2006-05-07 03:41:27 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-05-07 03:41:27 (GMT) |
commit | 520f552be79581be50156bb7785e7ef0ce946b07 (patch) | |
tree | 82edcbb794f6b89804a2a7f75e0122afcc074f94 /src/FbTk/TextButton.cc | |
parent | 0e9fa988ff41cc32a390f70443669a6df45f3e44 (diff) | |
download | fluxbox_pavel-520f552be79581be50156bb7785e7ef0ce946b07.zip fluxbox_pavel-520f552be79581be50156bb7785e7ef0ce946b07.tar.bz2 |
handle utf-8 strings properly.
use utf8 internally
Diffstat (limited to 'src/FbTk/TextButton.cc')
-rw-r--r-- | src/FbTk/TextButton.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FbTk/TextButton.cc b/src/FbTk/TextButton.cc index 054995a..0d9eef0 100644 --- a/src/FbTk/TextButton.cc +++ b/src/FbTk/TextButton.cc | |||
@@ -133,7 +133,7 @@ void TextButton::clearArea(int x, int y, | |||
133 | 133 | ||
134 | 134 | ||
135 | unsigned int TextButton::textWidth() const { | 135 | unsigned int TextButton::textWidth() const { |
136 | return font().textWidth(text().c_str(), text().size()); | 136 | return font().textWidth(text().data(), text().size()); |
137 | } | 137 | } |
138 | 138 | ||
139 | unsigned int TextButton::textHeight() const { | 139 | unsigned int TextButton::textHeight() const { |
@@ -157,7 +157,7 @@ void TextButton::drawText(int x_offset, int y_offset, FbDrawable *drawable) { | |||
157 | bevel(), | 157 | bevel(), |
158 | justify(), | 158 | justify(), |
159 | font(), | 159 | font(), |
160 | text().c_str(), text().size(), | 160 | text().data(), text().size(), |
161 | textlen); // return new text lne | 161 | textlen); // return new text lne |
162 | 162 | ||
163 | // center text by default | 163 | // center text by default |
@@ -175,7 +175,7 @@ void TextButton::drawText(int x_offset, int y_offset, FbDrawable *drawable) { | |||
175 | font().drawText(*drawable, | 175 | font().drawText(*drawable, |
176 | screenNumber(), | 176 | screenNumber(), |
177 | gc(), // graphic context | 177 | gc(), // graphic context |
178 | text().c_str(), textlen, // string and string size | 178 | text().data(), textlen, // string and string size |
179 | textx, texty, m_orientation); // position | 179 | textx, texty, m_orientation); // position |
180 | } | 180 | } |
181 | 181 | ||