diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-07-13 08:33:14 (GMT) |
---|---|---|
committer | Paul Tagliamonte <paultag@fluxbox.org> | 2012-04-07 02:11:31 (GMT) |
commit | 57a320ec85e39885707a6cabe2ab36f69e948ea9 (patch) | |
tree | 054ee4b56e2431ca36673c25b644a8cb49678b4a /src/Screen.cc | |
parent | d232e10f8fadfbaae834c0ba124cef16cd0bc356 (diff) | |
download | fluxbox_paul-57a320ec85e39885707a6cabe2ab36f69e948ea9.zip fluxbox_paul-57a320ec85e39885707a6cabe2ab36f69e948ea9.tar.bz2 |
Emit the "modified" signal when a resource value is changed through C++ code
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index 37381cd..fa8df19 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -822,7 +822,7 @@ void BScreen::reconfigure() { | |||
822 | 822 | ||
823 | // and update their names | 823 | // and update their names |
824 | for(size_t i = 0; i < std::min(m_workspaces_list.size(), resource.workspace_names->size()); ++i) | 824 | for(size_t i = 0; i < std::min(m_workspaces_list.size(), resource.workspace_names->size()); ++i) |
825 | m_workspaces_list[i]->setName( (*resource.workspace_names)[i] ); | 825 | m_workspaces_list[i]->setName( resource.workspace_names.get()[i] ); |
826 | 826 | ||
827 | // update menu filenames | 827 | // update menu filenames |
828 | m_rootmenu->reloadHelper()->setMainFile(fluxbox->getMenuFilename()); | 828 | m_rootmenu->reloadHelper()->setMainFile(fluxbox->getMenuFilename()); |
@@ -862,7 +862,8 @@ void BScreen::reconfigureTabs() { | |||
862 | void BScreen::updateWorkspaceName(unsigned int w) { | 862 | void BScreen::updateWorkspaceName(unsigned int w) { |
863 | Workspace *space = getWorkspace(w); | 863 | Workspace *space = getWorkspace(w); |
864 | if (space) { | 864 | if (space) { |
865 | (*resource.workspace_names)[w] = space->name(); | 865 | resource.workspace_names.get()[w] = space->name(); |
866 | // XXX use resource.workspace_names.modifiedSig() instead | ||
866 | m_workspacenames_sig.emit(*this); | 867 | m_workspacenames_sig.emit(*this); |
867 | Fluxbox::instance()->save_rc(); | 868 | Fluxbox::instance()->save_rc(); |
868 | } | 869 | } |