summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-04-14 14:02:41 (GMT)
committerfluxgen <fluxgen>2004-04-14 14:02:41 (GMT)
commita14a5eff0dccb13ba6fc050fd8f7e00b08360f07 (patch)
tree63ff9704537bfa0f7edd4b0819db47d58040d37a /src
parent715b376c8cfa7a89e3a1cba24885e660fb61c4bf (diff)
downloadfluxbox_lack-a14a5eff0dccb13ba6fc050fd8f7e00b08360f07.zip
fluxbox_lack-a14a5eff0dccb13ba6fc050fd8f7e00b08360f07.tar.bz2
fixed title problem, patch from Mathias Gumz
Diffstat (limited to 'src')
-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