From 442118f77140d18f1cf690a7bb489ead007d632d Mon Sep 17 00:00:00 2001 From: fluxgen Date: Mon, 23 Jun 2003 13:34:54 +0000 Subject: setting normal layer for toolbar --- src/ToolbarHandler.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ToolbarHandler.cc b/src/ToolbarHandler.cc index eda54c9..30e5ee6 100644 --- a/src/ToolbarHandler.cc +++ b/src/ToolbarHandler.cc @@ -20,7 +20,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: ToolbarHandler.cc,v 1.14 2003/05/24 13:13:22 rathnor Exp $ +// $Id: ToolbarHandler.cc,v 1.15 2003/06/23 13:34:54 fluxgen Exp $ /** * The ToolbarHandler class acts as a rough interface to the toolbar. @@ -118,7 +118,9 @@ void ToolbarHandler::setMode(ToolbarMode mode, bool initialise) { } else if (!m_toolbar.get()) { m_toolbarmenu.removeAll(); m_toolbar.reset(new Toolbar(m_screen, - *m_screen.layerManager().getLayer(m_screen.getToolbarLayerNum()), m_toolbarmenu)); + *m_screen.layerManager().getLayer(Fluxbox::instance()->getNormalLayer()), m_toolbarmenu)); + Fluxbox::instance()->load_rc(m_screen); + m_toolbar->reconfigure(); m_toolbarmenu.insert("Mode...", &m_modemenu); m_toolbarmenu.update(); -- cgit v0.11.2