diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2011-02-22 21:17:11 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2011-02-22 21:17:11 (GMT) |
commit | 4f921f77f459a983a75edb8bd3fb7b0bb2015298 (patch) | |
tree | abac675a3c5d91a303009e7abe738a3c03c70648 /src/AlphaMenu.hh | |
parent | d11aa42ace928efc3dd1eebc8988b6bbbc005b2b (diff) | |
download | fluxbox_pavel-4f921f77f459a983a75edb8bd3fb7b0bb2015298.zip fluxbox_pavel-4f921f77f459a983a75edb8bd3fb7b0bb2015298.tar.bz2 |
don't use hardcoded references to positions in the menu
Diffstat (limited to 'src/AlphaMenu.hh')
-rw-r--r-- | src/AlphaMenu.hh | 7 |
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 | ||
31 | namespace FbTk { | ||
32 | class IntMenuItem; | ||
33 | } | ||
34 | |||
31 | class AlphaMenu : public ToggleMenu { | 35 | class AlphaMenu : public ToggleMenu { |
32 | public: | 36 | public: |
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(); |
43 | private: | ||
44 | FbTk::IntMenuItem* m_focused_alpha_item; | ||
45 | FbTk::IntMenuItem* m_unfocused_alpha_item; | ||
39 | }; | 46 | }; |
40 | 47 | ||
41 | class AlphaMenuSelectItem : public FbTk::MenuItem { | 48 | class AlphaMenuSelectItem : public FbTk::MenuItem { |