aboutsummaryrefslogtreecommitdiff
path: root/src/FbCommands.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-12-03 22:13:21 (GMT)
committerfluxgen <fluxgen>2003-12-03 22:13:21 (GMT)
commit7238e21fc58e8e8ec27b42a0907f98144ba4413e (patch)
tree85118f7bea9eedf5ed0cad77154f951604100677 /src/FbCommands.cc
parent8553753773f846a82b9374540af3e8d4be6c4673 (diff)
downloadfluxbox-7238e21fc58e8e8ec27b42a0907f98144ba4413e.zip
fluxbox-7238e21fc58e8e8ec27b42a0907f98144ba4413e.tar.bz2
reload style command
Diffstat (limited to 'src/FbCommands.cc')
-rw-r--r--src/FbCommands.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc
index 11d4f78..7372b6a 100644
--- a/src/FbCommands.cc
+++ b/src/FbCommands.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbCommands.cc,v 1.17 2003/09/06 15:02:41 fluxgen Exp $ 22// $Id: FbCommands.cc,v 1.18 2003/12/03 22:13:21 fluxgen Exp $
23 23
24#include "FbCommands.hh" 24#include "FbCommands.hh"
25#include "fluxbox.hh" 25#include "fluxbox.hh"
@@ -93,11 +93,18 @@ void ReconfigureFluxboxCmd::execute() {
93 Fluxbox::instance()->reconfigure(); 93 Fluxbox::instance()->reconfigure();
94} 94}
95 95
96
97void ReloadStyleCmd::execute() {
98 SetStyleCmd cmd(Fluxbox::instance()->getStyleFilename());
99 cmd.execute();
100}
101
96SetStyleCmd::SetStyleCmd(const std::string &filename):m_filename(filename) { 102SetStyleCmd::SetStyleCmd(const std::string &filename):m_filename(filename) {
97 103
98} 104}
99 105
100void SetStyleCmd::execute() { 106void SetStyleCmd::execute() {
107 cerr<<"SetStyle: "<<m_filename<<endl;
101 Fluxbox::instance()->saveStyleFilename(m_filename.c_str()); 108 Fluxbox::instance()->saveStyleFilename(m_filename.c_str());
102 Fluxbox::instance()->save_rc(); 109 Fluxbox::instance()->save_rc();
103 FbTk::ThemeManager::instance().load(m_filename); 110 FbTk::ThemeManager::instance().load(m_filename);