From 6e416d3e406fa6376d3fcde1eb0fd7d3f7d156ae Mon Sep 17 00:00:00 2001 From: fluxgen Date: Thu, 10 Jul 2003 11:29:45 +0000 Subject: using extended fluxbox menutheme instead of fbtk menutheme --- src/Screen.cc | 9 +++++---- src/Screen.hh | 10 +++++----- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/Screen.cc b/src/Screen.cc index c33a5bb..21f8481 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Screen.cc,v 1.201 2003/07/04 01:03:40 rathnor Exp $ +// $Id: Screen.cc,v 1.202 2003/07/10 11:29:45 fluxgen Exp $ #include "Screen.hh" @@ -56,6 +56,7 @@ #include "Strut.hh" #include "SlitTheme.hh" #include "CommandParser.hh" +#include "MenuTheme.hh" //use GNU extensions #ifndef _GNU_SOURCE @@ -287,7 +288,7 @@ BScreen::BScreen(FbTk::ResourceManager &rm, // because winbutton need to rescale the pixmaps in winbutton theme // after fbwinframe have resized them m_winbutton_theme(new WinButtonTheme(scrn)), - m_menutheme(new FbTk::MenuTheme(scrn)), + m_menutheme(new MenuTheme(scrn)), m_root_theme(new RootTheme(scrn, *resource.rootcommand)), @@ -1049,7 +1050,7 @@ FluxboxWindow *BScreen::createWindow(Window client) { win = winclient->fbwindow(); else { win = new FluxboxWindow(*winclient, *this, - winFrameTheme(), *menuTheme(), + winFrameTheme(), *layerManager().getLayer(Fluxbox::instance()->getNormalLayer())); new_win = true; @@ -1093,7 +1094,7 @@ FluxboxWindow *BScreen::createWindow(Window client) { FluxboxWindow *BScreen::createWindow(WinClient &client) { FluxboxWindow *win = new FluxboxWindow(client, *this, - winFrameTheme(), *menuTheme(), + winFrameTheme(), *layerManager().getLayer(Fluxbox::instance()->getNormalLayer())); #ifdef SLIT if (win->initialState() == WithdrawnState) diff --git a/src/Screen.hh b/src/Screen.hh index ab09487..c4976b5 100644 --- a/src/Screen.hh +++ b/src/Screen.hh @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Screen.hh,v 1.113 2003/07/01 12:39:09 fluxgen Exp $ +// $Id: Screen.hh,v 1.114 2003/07/10 11:28:24 fluxgen Exp $ #ifndef SCREEN_HH #define SCREEN_HH @@ -33,6 +33,7 @@ #include "FbRootWindow.hh" #include "NotCopyable.hh" #include "fluxbox.hh" +#include "MenuTheme.hh" #include #include @@ -54,7 +55,6 @@ class Strut; class Slit; namespace FbTk { -class MenuTheme; class Menu; class ImageControl; class XLayerItem; @@ -190,8 +190,8 @@ public: inline FbWinFrameTheme &winFrameTheme() { return *m_windowtheme.get(); } inline const FbWinFrameTheme &winFrameTheme() const { return *m_windowtheme.get(); } - inline FbTk::MenuTheme *menuTheme() { return m_menutheme.get(); } - inline const FbTk::MenuTheme *menuTheme() const { return m_menutheme.get(); } + inline MenuTheme *menuTheme() { return m_menutheme.get(); } + inline const MenuTheme *menuTheme() const { return m_menutheme.get(); } inline const RootTheme &rootTheme() const { return *m_root_theme.get(); } FbRootWindow &rootWindow() { return m_root_window; } const FbRootWindow &rootWindow() const { return m_root_window; } @@ -383,7 +383,7 @@ private: std::auto_ptr m_windowtheme; std::auto_ptr m_winbutton_theme; - std::auto_ptr m_menutheme; + std::auto_ptr m_menutheme; std::auto_ptr m_root_theme; FbRootWindow m_root_window; -- cgit v0.11.2