aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Screen.cc10
-rw-r--r--src/fluxbox.hh2
2 files changed, 6 insertions, 6 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 }
diff --git a/src/fluxbox.hh b/src/fluxbox.hh
index 78ce093..c245d43 100644
--- a/src/fluxbox.hh
+++ b/src/fluxbox.hh
@@ -120,7 +120,7 @@ public:
120 FbTk::StringResource &getStyleResource() { return m_rc_stylefile; } 120 FbTk::StringResource &getStyleResource() { return m_rc_stylefile; }
121 const std::string &getStyleOverlayFilename() const { return *m_rc_styleoverlayfile; } 121 const std::string &getStyleOverlayFilename() const { return *m_rc_styleoverlayfile; }
122 122
123 const std::string &getMenuFilename() const { return *m_rc_menufile; } 123 FbTk::StringResource &getMenuResource() { return m_rc_menufile; }
124 FbTk::StringResource &getAppsResource() { return m_rc_appsfile; } 124 FbTk::StringResource &getAppsResource() { return m_rc_appsfile; }
125 FbTk::StringResource &getKeysResource() { return m_rc_keyfile; } 125 FbTk::StringResource &getKeysResource() { return m_rc_keyfile; }
126 int colorsPerChannel() const { return *m_rc_colors_per_channel; } 126 int colorsPerChannel() const { return *m_rc_colors_per_channel; }