From 6d749d6f1a79f609b1a123fad013ae8bc25888ce Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Wed, 21 Jan 2015 22:16:38 +0100 Subject: Cosmetic --- src/FbMenu.cc | 10 +++++++++- src/FbMenu.hh | 9 +++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/FbMenu.cc b/src/FbMenu.cc index 2871042..4cc2b06 100644 --- a/src/FbMenu.cc +++ b/src/FbMenu.cc @@ -26,7 +26,15 @@ #include "WindowCmd.hh" #include "FbTk/AutoReloadHelper.hh" -FluxboxWindow *FbMenu::s_window = 0; +namespace { + +FluxboxWindow* s_window = 0; + +} + +void FbMenu::setWindow(FluxboxWindow* win) { s_window = win; } +FluxboxWindow* FbMenu::window() { return s_window; } + FbMenu::FbMenu(FbTk::ThemeProxy &tm, FbTk::ImageControl &imgctrl, FbTk::Layer &layer): diff --git a/src/FbMenu.hh b/src/FbMenu.hh index 23c2ad5..193149f 100644 --- a/src/FbMenu.hh +++ b/src/FbMenu.hh @@ -37,6 +37,11 @@ class MenuTheme; /// a layered and shaped menu class FbMenu:public FbTk::Menu { public: + + static void setWindow(FluxboxWindow *win); + static FluxboxWindow *window(); + + FbMenu(FbTk::ThemeProxy &tm, FbTk::ImageControl &imgctrl, FbTk::Layer &layer); virtual ~FbMenu() { } @@ -49,13 +54,9 @@ public: void setReloadHelper(FbTk::AutoReloadHelper *helper) { m_reloader.reset(helper); } FbTk::AutoReloadHelper *reloadHelper() { return m_reloader.get(); } - static void setWindow(FluxboxWindow *win) { s_window = win; } - static FluxboxWindow *window() { return s_window; } - private: FbTk::LayerItem m_layeritem; std::auto_ptr m_reloader; - static FluxboxWindow *s_window; }; #endif // FBMENU_HH -- cgit v0.11.2