From a9579c3c44fb4fa3745d7ac581c106fd40bea155 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Thu, 9 Jan 2003 18:33:58 +0000 Subject: changed client menu to FbTk Menu --- src/Workspace.cc | 5 ++--- src/Workspace.hh | 11 +++++------ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/Workspace.cc b/src/Workspace.cc index 9768350..6674c4e 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc @@ -22,13 +22,12 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Workspace.cc,v 1.39 2003/01/05 22:30:20 fluxgen Exp $ +// $Id: Workspace.cc,v 1.40 2003/01/09 18:33:58 fluxgen Exp $ #include "Workspace.hh" #include "i18n.hh" #include "fluxbox.hh" -#include "Clientmenu.hh" #include "Screen.hh" #include "Toolbar.hh" #include "Window.hh" @@ -77,7 +76,7 @@ Workspace::GroupList Workspace::m_groups; Workspace::Workspace(BScreen *scrn, unsigned int i): screen(scrn), lastfocus(0), - m_clientmenu(*this), + m_clientmenu(*scrn->menuTheme(), scrn->getScreenNumber(), *scrn->getImageControl()), m_name(""), m_id(i), cascade_x(32), cascade_y(32) { diff --git a/src/Workspace.hh b/src/Workspace.hh index ae8f456..514f346 100644 --- a/src/Workspace.hh +++ b/src/Workspace.hh @@ -25,10 +25,10 @@ #ifndef WORKSPACE_HH #define WORKSPACE_HH - -#include "Clientmenu.hh" #include "NotCopyable.hh" +#include "Menu.hh" + #include #include @@ -70,9 +70,8 @@ public: const BScreen *getScreen() const { return screen; } const FluxboxWindow *getLastFocusedWindow() const { return lastfocus; } - Clientmenu &menu() { return m_clientmenu; } - /// client menu - inline const Clientmenu &menu() const { return m_clientmenu; } + FbTk::Menu &menu() { return m_clientmenu; } + inline const FbTk::Menu &menu() const { return m_clientmenu; } /// name of this workspace inline const std::string &name() const { return m_name; } /** @@ -103,7 +102,7 @@ private: BScreen *screen; FluxboxWindow *lastfocus; - Clientmenu m_clientmenu; + FbTk::Menu m_clientmenu; typedef std::list WindowStack; typedef std::vector Group; -- cgit v0.11.2