diff options
author | mathias <mathias> | 2004-12-13 14:03:17 (GMT) |
---|---|---|
committer | mathias <mathias> | 2004-12-13 14:03:17 (GMT) |
commit | eb42a7806d0af854cc4bdfa8f194a0bb67446153 (patch) | |
tree | 5a8a22b0705ee927a16265f1a754159835fb22d9 /src/FbTk/Menu.cc | |
parent | 7c7dfbfbddc635faaabb87fa755925fbb66d89dd (diff) | |
download | fluxbox_pavel-eb42a7806d0af854cc4bdfa8f194a0bb67446153.zip fluxbox_pavel-eb42a7806d0af854cc4bdfa8f194a0bb67446153.tar.bz2 |
icc complaint about a "possible" conflict between the
FbTk::Menu::update(Subject*) and FbTk::Menu::update(int index)
to avoid this, we rename FbTk::Menu::update(int index)
-> FbTk::Menu::updateMenu(int index)
this is mostly cosmetic, but if it makes the life of a compiler happy, well ..
be happy icc :)
Diffstat (limited to 'src/FbTk/Menu.cc')
-rw-r--r-- | src/FbTk/Menu.cc | 12 |
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 | ||
401 | void Menu::update(int active_index) { | 401 | void 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) { | |||
626 | void Menu::show() { | 626 | void 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 | ||