aboutsummaryrefslogtreecommitdiff
path: root/src/AlphaMenu.hh
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2011-02-22 21:17:11 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2011-02-22 21:17:11 (GMT)
commit4f921f77f459a983a75edb8bd3fb7b0bb2015298 (patch)
treeabac675a3c5d91a303009e7abe738a3c03c70648 /src/AlphaMenu.hh
parentd11aa42ace928efc3dd1eebc8988b6bbbc005b2b (diff)
downloadfluxbox-4f921f77f459a983a75edb8bd3fb7b0bb2015298.zip
fluxbox-4f921f77f459a983a75edb8bd3fb7b0bb2015298.tar.bz2
don't use hardcoded references to positions in the menu
Diffstat (limited to 'src/AlphaMenu.hh')
-rw-r--r--src/AlphaMenu.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/AlphaMenu.hh b/src/AlphaMenu.hh
index 833b0d2..27f26dd 100644
--- a/src/AlphaMenu.hh
+++ b/src/AlphaMenu.hh
@@ -28,6 +28,10 @@
28#include "WindowMenuAccessor.hh" 28#include "WindowMenuAccessor.hh"
29#include "FbTk/MenuItem.hh" 29#include "FbTk/MenuItem.hh"
30 30
31namespace FbTk {
32 class IntMenuItem;
33}
34
31class AlphaMenu : public ToggleMenu { 35class AlphaMenu : public ToggleMenu {
32public: 36public:
33 AlphaMenu(FbTk::ThemeProxy<FbTk::MenuTheme> &tm, 37 AlphaMenu(FbTk::ThemeProxy<FbTk::MenuTheme> &tm,
@@ -36,6 +40,9 @@ public:
36 // we override these to update the menu when the active window changes 40 // we override these to update the menu when the active window changes
37 void move(int x, int y); 41 void move(int x, int y);
38 void show(); 42 void show();
43private:
44 FbTk::IntMenuItem* m_focused_alpha_item;
45 FbTk::IntMenuItem* m_unfocused_alpha_item;
39}; 46};
40 47
41class AlphaMenuSelectItem : public FbTk::MenuItem { 48class AlphaMenuSelectItem : public FbTk::MenuItem {