aboutsummaryrefslogtreecommitdiff
path: root/src/FbMenu.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbMenu.cc')
-rw-r--r--src/FbMenu.cc25
1 files changed, 1 insertions, 24 deletions
diff --git a/src/FbMenu.cc b/src/FbMenu.cc
index 65fbecd..941ca0e 100644
--- a/src/FbMenu.cc
+++ b/src/FbMenu.cc
@@ -25,36 +25,13 @@
25#include "FbMenu.hh" 25#include "FbMenu.hh"
26 26
27#include "fluxbox.hh" 27#include "fluxbox.hh"
28#include "FbTk/MenuTheme.hh"
29#include "Screen.hh" 28#include "Screen.hh"
30 29
31#include "FbTk/Shape.hh"
32
33FbMenu::FbMenu(FbTk::MenuTheme &tm, FbTk::ImageControl &imgctrl, 30FbMenu::FbMenu(FbTk::MenuTheme &tm, FbTk::ImageControl &imgctrl,
34 FbTk::XLayer &layer): 31 FbTk::XLayer &layer):
35 FbTk::Menu(tm, imgctrl), 32 FbTk::Menu(tm, imgctrl),
36 m_layeritem(fbwindow(), layer), 33 m_layeritem(fbwindow(), layer) {
37 m_shape(new FbTk::Shape(fbwindow(), tm.shapePlaces())) {
38
39}
40
41FbMenu::~FbMenu() {
42
43}
44
45void FbMenu::updateMenu(int index) {
46 FbTk::Menu::updateMenu(index);
47 m_shape->update();
48}
49
50void FbMenu::clearWindow() {
51 FbTk::Menu::clearWindow();
52 m_shape->update();
53}
54 34
55void FbMenu::reconfigure() {
56 m_shape->setPlaces(theme().shapePlaces());
57 FbTk::Menu::reconfigure();
58} 35}
59 36
60void FbMenu::buttonReleaseEvent(XButtonEvent &be) { 37void FbMenu::buttonReleaseEvent(XButtonEvent &be) {