all repos — fluxbox @ f1bb9545d11ef6da53923ba6dc1021a900eb3340

custom fork of the fluxbox windowmanager

added disable/enable title and removeAll items function
fluxgen fluxgen
commit

f1bb9545d11ef6da53923ba6dc1021a900eb3340

parent

a7f4b6edb6bcf2719df9d604da03fda331008852

1 files changed, 16 insertions(+), 1 deletions(-)

jump to
M src/FbTk/Menu.ccsrc/FbTk/Menu.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Menu.cc,v 1.1 2002/12/25 11:46:50 fluxgen Exp $ +// $Id: Menu.cc,v 1.2 2003/01/07 02:10:24 fluxgen Exp $ //use GNU extensions #ifndef _GNU_SOURCE

@@ -238,12 +238,27 @@

return menuitems.size(); } +void Menu::removeAll() { + while (!menuitems.empty()) { + delete menuitems.back(); + menuitems.pop_back(); + } +} + void Menu::raise() { menu.window.raise(); } void Menu::lower() { menu.window.lower(); +} + +void Menu::disableTitle() { + setTitleVisibility(false); +} + +void Menu::enableTitle() { + setTitleVisibility(true); } void Menu::update() {