all repos — fluxbox @ 3029aca7efe62ecee7b63fd8bbaf3d616c3cb0e7

custom fork of the fluxbox windowmanager

reconfigure toolbar after we load resources
fluxgen fluxgen
commit

3029aca7efe62ecee7b63fd8bbaf3d616c3cb0e7

parent

150db600ffa7395cdfa1460820f87930ebdb2715

1 files changed, 10 insertions(+), 6 deletions(-)

jump to
M src/Screen.ccsrc/Screen.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Screen.cc,v 1.188 2003/06/23 13:10:52 fluxgen Exp $ +// $Id: Screen.cc,v 1.189 2003/06/23 13:31:47 fluxgen Exp $ #include "Screen.hh"

@@ -461,14 +461,16 @@

#ifdef SLIT m_slit.reset(new Slit(*this, *layerManager().getLayer(Fluxbox::instance()->getDesktopLayer()), Fluxbox::instance()->getSlitlistFilename().c_str())); - //!! TODO: we shouldn't do this more than once, but since slit handles it's own resources - // we must do this. - fluxbox->load_rc(*this); + #endif // SLIT // create toolbarhandler for toolbar m_toolbarhandler.reset(new ToolbarHandler(*this, toolbarMode())); + + //!! TODO: we shouldn't do this more than once, but since slit/toolbar handles their + // own resources we must do this. + fluxbox->load_rc(*this); m_configmenu.reset(createMenuFromScreen(*this)); setupConfigmenu(*m_configmenu.get());

@@ -486,9 +488,11 @@ m_rootmenu->update();

m_configmenu->update(); #ifdef SLIT - if (m_slit.get()) - m_slit->reconfigure(); + if (slit()) + slit()->reconfigure(); #endif // SLIT + if (toolbar()) + toolbar()->reconfigure(); // start with workspace 0 changeWorkspaceID(0);