aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/MenuItem.cc
diff options
context:
space:
mode:
authorsimonb <simonb>2006-05-20 15:08:14 (GMT)
committersimonb <simonb>2006-05-20 15:08:14 (GMT)
commit0861f3a9073ccd016302af26ff992fa19331a02d (patch)
treef1a2276449a5fc9b27f2d1afa5ffff4410141345 /src/FbTk/MenuItem.cc
parent5ddabb0f390f69db793b5a6e40be9f94b8f83136 (diff)
downloadfluxbox-0861f3a9073ccd016302af26ff992fa19331a02d.zip
fluxbox-0861f3a9073ccd016302af26ff992fa19331a02d.tar.bz2
improve native language handling, move messages and menu labels to
FbTk::FbString
Diffstat (limited to 'src/FbTk/MenuItem.cc')
-rw-r--r--src/FbTk/MenuItem.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/MenuItem.cc b/src/FbTk/MenuItem.cc
index f8ec4e9..fafedc0 100644
--- a/src/FbTk/MenuItem.cc
+++ b/src/FbTk/MenuItem.cc
@@ -284,7 +284,7 @@ unsigned int MenuItem::height(const MenuTheme &theme) const {
284unsigned int MenuItem::width(const MenuTheme &theme) const { 284unsigned int MenuItem::width(const MenuTheme &theme) const {
285 // textwidth + bevel width on each side of the text 285 // textwidth + bevel width on each side of the text
286 const unsigned int icon_width = height(theme); 286 const unsigned int icon_width = height(theme);
287 const unsigned int normal = theme.frameFont().textWidth(label().c_str(), label().size()) + 287 const unsigned int normal = theme.frameFont().textWidth(label(), label().size()) +
288 2 * (theme.bevelWidth() + icon_width); 288 2 * (theme.bevelWidth() + icon_width);
289 return m_icon.get() == 0 ? normal : normal + icon_width; 289 return m_icon.get() == 0 ? normal : normal + icon_width;
290} 290}