diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-18 08:33:47 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-18 08:33:47 (GMT) |
commit | 1d4bea8a2db2c0ab1e14b8afd81c87b80a262d66 (patch) | |
tree | 21cc4e919cabe52ab8d355a7ceec980da6fb420a /src/FbTk/TextButton.cc | |
parent | 3a5fd7342d6cfd00acafeec4c1f35948a550e4ab (diff) | |
parent | 8c2cee577a744870fd497f73a21c2d4e1c45c907 (diff) | |
download | fluxbox-1d4bea8a2db2c0ab1e14b8afd81c87b80a262d66.zip fluxbox-1d4bea8a2db2c0ab1e14b8afd81c87b80a262d66.tar.bz2 |
Merge branch 'master' of fluxbox@gitfbox:fluxbox
Diffstat (limited to 'src/FbTk/TextButton.cc')
-rw-r--r-- | src/FbTk/TextButton.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/FbTk/TextButton.cc b/src/FbTk/TextButton.cc index 922eb74..5a7afa6 100644 --- a/src/FbTk/TextButton.cc +++ b/src/FbTk/TextButton.cc | |||
@@ -20,6 +20,7 @@ | |||
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | #include "TextButton.hh" | 22 | #include "TextButton.hh" |
23 | #include "TextUtils.hh" | ||
23 | #include "Font.hh" | 24 | #include "Font.hh" |
24 | #include "GContext.hh" | 25 | #include "GContext.hh" |
25 | 26 | ||
@@ -150,7 +151,7 @@ void TextButton::renderForeground(FbWindow &win, FbDrawable &drawable) { | |||
150 | } | 151 | } |
151 | 152 | ||
152 | void TextButton::drawText(int x_offset, int y_offset, FbDrawable *drawable) { | 153 | void TextButton::drawText(int x_offset, int y_offset, FbDrawable *drawable) { |
153 | size_t textlen = text().size(); | 154 | unsigned int textlen = text().size(); |
154 | // do text alignment | 155 | // do text alignment |
155 | 156 | ||
156 | unsigned int textw = width(), texth = height(); | 157 | unsigned int textw = width(), texth = height(); |