diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2011-01-15 20:31:37 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2011-01-15 20:31:37 (GMT) |
commit | bb480030f54947b19b761f37dd3c4756b361b5e1 (patch) | |
tree | b5934dc12278b7b48d96f82dd31061c8fc554fcf /src/Screen.cc | |
parent | accb8c3fa34b67ff59ecc2ea791eb10e1dcb90fc (diff) | |
download | fluxbox-bb480030f54947b19b761f37dd3c4756b361b5e1.zip fluxbox-bb480030f54947b19b761f37dd3c4756b361b5e1.tar.bz2 |
small refactoring of FbTk/Menu code
* removed useless struct _menu
* code deduplication via renderMenuPixmap()
* improved documentation:
- 'sublevel' actually means 'column'
- 'persub' means 'row_per_column'
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index 9bf9711..1f53edc 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -1647,7 +1647,7 @@ void BScreen::setupConfigmenu(FbTk::Menu &menu) { | |||
1647 | { _FB_XTEXT(Align, BottomRight, "Bottom Right", "Bottom Right"), FbWinFrame::BOTTOMRIGHT} | 1647 | { _FB_XTEXT(Align, BottomRight, "Bottom Right", "Bottom Right"), FbWinFrame::BOTTOMRIGHT} |
1648 | }; | 1648 | }; |
1649 | 1649 | ||
1650 | tabplacement_menu->setMinimumSublevels(3); | 1650 | tabplacement_menu->setMinimumColumns(3); |
1651 | // create items in sub menu | 1651 | // create items in sub menu |
1652 | for (size_t i=0; i< sizeof(place_menu)/sizeof(PlacementP); ++i) { | 1652 | for (size_t i=0; i< sizeof(place_menu)/sizeof(PlacementP); ++i) { |
1653 | const PlacementP& p = place_menu[i]; | 1653 | const PlacementP& p = place_menu[i]; |