From 34e479a1d4b8fbaf14c23094742541df5a393ce0 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Thu, 10 Jul 2003 11:33:31 +0000 Subject: dont need to call constructor with menutheme --- src/Window.cc | 7 +++---- src/Window.hh | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Window.cc b/src/Window.cc index f5c4fb9..e0ed011 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.cc,v 1.202 2003/07/04 01:03:40 rathnor Exp $ +// $Id: Window.cc,v 1.203 2003/07/10 11:33:31 fluxgen Exp $ #include "Window.hh" @@ -220,7 +220,6 @@ void LayerMenuItem::click(int button, int time) { } FluxboxWindow::FluxboxWindow(WinClient &client, BScreen &scr, FbWinFrameTheme &tm, - FbTk::MenuTheme &menutheme, FbTk::XLayer &layer): oplock(false), m_hintsig(*this), @@ -235,13 +234,13 @@ FluxboxWindow::FluxboxWindow(WinClient &client, BScreen &scr, FbWinFrameTheme &t m_screen(scr), m_timer(this), display(0), - m_layermenu(new LayerMenu(menutheme, + m_layermenu(new LayerMenu(*scr.menuTheme(), scr.screenNumber(), scr.imageControl(), *scr.layerManager().getLayer(Fluxbox::instance()->getMenuLayer()), this, false)), - m_windowmenu(menutheme, scr.screenNumber(), scr.imageControl()), + m_windowmenu(*scr.menuTheme(), scr.screenNumber(), scr.imageControl()), m_old_decoration(DECOR_NORMAL), m_client(&client), m_frame(new FbWinFrame(tm, scr.imageControl(), scr.screenNumber(), 0, 0, 100, 100)), diff --git a/src/Window.hh b/src/Window.hh index a7ef327..7ed7257 100644 --- a/src/Window.hh +++ b/src/Window.hh @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.hh,v 1.82 2003/06/25 13:37:06 fluxgen Exp $ +// $Id: Window.hh,v 1.83 2003/07/10 11:32:57 fluxgen Exp $ #ifndef WINDOW_HH #define WINDOW_HH @@ -148,7 +148,6 @@ public: /// create a window from a client FluxboxWindow(WinClient &client, BScreen &scr, FbWinFrameTheme &tm, - FbTk::MenuTheme &menutheme, FbTk::XLayer &layer); virtual ~FluxboxWindow(); -- cgit v0.11.2