aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Menu.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/Menu.cc')
-rw-r--r--src/FbTk/Menu.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index 2460951..7cf076b 100644
--- a/src/FbTk/Menu.cc
+++ b/src/FbTk/Menu.cc
@@ -398,13 +398,13 @@ void Menu::enableTitle() {
398 setTitleVisibility(true); 398 setTitleVisibility(true);
399} 399}
400 400
401void Menu::update(int active_index) { 401void Menu::updateMenu(int active_index) {
402 if (title_vis) { 402 if (title_vis) {
403 menu.item_w = theme().titleFont().textWidth(menu.label.c_str(), 403 menu.item_w = theme().titleFont().textWidth(menu.label.c_str(),
404 menu.label.size()); 404 menu.label.size());
405 405
406 menu.item_w += (theme().bevelWidth() * 2); 406 menu.item_w += (theme().bevelWidth() * 2);
407 } else 407 } else
408 menu.item_w = 1; 408 menu.item_w = 1;
409 409
410 unsigned int ii = 0; 410 unsigned int ii = 0;
@@ -626,7 +626,7 @@ void Menu::update(int active_index) {
626void Menu::show() { 626void Menu::show() {
627 627
628 if (m_need_update) 628 if (m_need_update)
629 update(); 629 updateMenu();
630 630
631 menu.window.showSubwindows(); 631 menu.window.showSubwindows();
632 menu.window.show(); 632 menu.window.show();
@@ -677,7 +677,7 @@ void Menu::clearWindow() {
677 if (alpha() < 255) { 677 if (alpha() < 255) {
678 renderTransp(0, 0, 678 renderTransp(0, 0,
679 menu.frame.width(), menu.frame.height()); 679 menu.frame.width(), menu.frame.height());
680 update(); 680 updateMenu();
681 } 681 }
682 682
683 menu.title.clear(); 683 menu.title.clear();
@@ -1368,7 +1368,7 @@ void Menu::keyPressEvent(XKeyEvent &event) {
1368 menuitems[which_press]->click(1, event.time); 1368 menuitems[which_press]->click(1, event.time);
1369 itemSelected(1, which_press); 1369 itemSelected(1, which_press);
1370 m_need_update = true; 1370 m_need_update = true;
1371 update(); 1371 updateMenu();
1372 } 1372 }
1373 break; 1373 break;
1374 default: 1374 default:
@@ -1413,7 +1413,7 @@ void Menu::reconfigure() {
1413 menu.title.setBorderWidth(theme().borderWidth()); 1413 menu.title.setBorderWidth(theme().borderWidth());
1414 1414
1415 1415
1416 update(); 1416 updateMenu();
1417 1417
1418} 1418}
1419 1419