summaryrefslogtreecommitdiff
path: root/src/FbTk/Menu.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/Menu.cc')
-rw-r--r--src/FbTk/Menu.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index de62627..ab4fd19 100644
--- a/src/FbTk/Menu.cc
+++ b/src/FbTk/Menu.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Menu.cc,v 1.56 2004/02/27 14:21:13 fluxgen Exp $ 25// $Id: Menu.cc,v 1.57 2004/04/14 14:02:41 fluxgen Exp $
26 26
27//use GNU extensions 27//use GNU extensions
28#ifndef _GNU_SOURCE 28#ifndef _GNU_SOURCE
@@ -363,7 +363,8 @@ void Menu::update(int active_index) {
363 menu.title_h = m_theme.titleFont().height() + menu.bevel_w*2; 363 menu.title_h = m_theme.titleFont().height() + menu.bevel_w*2;
364 364
365 if (title_vis) { 365 if (title_vis) {
366 menu.item_w = m_theme.frameFont().textWidth(menu.label.c_str(), menu.label.size()); 366 menu.item_w = m_theme.titleFont().textWidth(menu.label.c_str(),
367 menu.label.size());
367 368
368 menu.item_w += (menu.bevel_w * 2); 369 menu.item_w += (menu.bevel_w * 2);
369 } else 370 } else