aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-07-14 11:02:29 (GMT)
committerPavel Labath <pavelo@centrum.sk>2013-02-17 09:55:05 (GMT)
commit17dde49100067d2b59be068c227a10071a48a448 (patch)
tree7a6f0bbed044d20bca834b20b8c5eedf3f03d49f /src/Screen.cc
parentbf3742bd6b6de068fa5a4193b6522849c1fec867 (diff)
downloadfluxbox_pavel-17dde49100067d2b59be068c227a10071a48a448.zip
fluxbox_pavel-17dde49100067d2b59be068c227a10071a48a448.tar.bz2
Attach a modifiedSig handler to the session.menuFile resource
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 97ebffa..6e74d88 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -828,8 +828,6 @@ BScreen::addExtraWindowMenu(const FbTk::FbString &label, const FbTk::RefCount<Fb
828} 828}
829 829
830void BScreen::reconfigure() { 830void BScreen::reconfigure() {
831 Fluxbox *fluxbox = Fluxbox::instance();
832
833 focusedWinFrameTheme()->setAlpha(*resource.focused_alpha); 831 focusedWinFrameTheme()->setAlpha(*resource.focused_alpha);
834 unfocusedWinFrameTheme()->setAlpha(*resource.unfocused_alpha); 832 unfocusedWinFrameTheme()->setAlpha(*resource.unfocused_alpha);
835 m_menutheme->setAlpha(*resource.menu_alpha); 833 m_menutheme->setAlpha(*resource.menu_alpha);
@@ -848,7 +846,6 @@ void BScreen::reconfigure() {
848 m_workspaces_list[i]->setName( resource.workspace_names.get()[i] ); 846 m_workspaces_list[i]->setName( resource.workspace_names.get()[i] );
849 847
850 // update menu filenames 848 // update menu filenames
851 m_rootmenu->reloadHelper()->setMainFile(fluxbox->getMenuFilename());
852 m_windowmenu->reloadHelper()->setMainFile(windowMenuFilename()); 849 m_windowmenu->reloadHelper()->setMainFile(windowMenuFilename());
853 850
854 // reconfigure workspaces 851 // reconfigure workspaces
@@ -1361,7 +1358,10 @@ void BScreen::reassociateWindow(FluxboxWindow *w, unsigned int wkspc_id,
1361void BScreen::initMenus() { 1358void BScreen::initMenus() {
1362 m_workspacemenu = MenuCreator::createMenuType("workspacemenu", screenNumber()); 1359 m_workspacemenu = MenuCreator::createMenuType("workspacemenu", screenNumber());
1363 1360
1364 m_rootmenu->reloadHelper()->setMainFile(Fluxbox::instance()->getMenuFilename()); 1361 m_tracker.join(Fluxbox::instance()->getMenuResource().modifiedSig(),
1362 MemFun(*m_rootmenu->reloadHelper(), &FbTk::AutoReloadHelper::setMainFile));
1363 m_rootmenu->reloadHelper()->setMainFile(*Fluxbox::instance()->getMenuResource());
1364
1365 m_windowmenu->reloadHelper()->setMainFile(windowMenuFilename()); 1365 m_windowmenu->reloadHelper()->setMainFile(windowMenuFilename());
1366} 1366}
1367 1367
@@ -1375,7 +1375,7 @@ void BScreen::rereadMenu() {
1375 1375
1376 m_rootmenu->removeAll(); 1376 m_rootmenu->removeAll();
1377 try { 1377 try {
1378 l.loadfile(FbTk::StringUtil::expandFilename(fb->getMenuFilename()).c_str()); 1378 l.loadfile(FbTk::StringUtil::expandFilename(*fb->getMenuResource()).c_str());
1379 l.call(0, 1); 1379 l.call(0, 1);
1380 MenuCreator::createMenu(*m_rootmenu, l, m_rootmenu->reloadHelper()); 1380 MenuCreator::createMenu(*m_rootmenu, l, m_rootmenu->reloadHelper());
1381 } 1381 }