aboutsummaryrefslogtreecommitdiff
path: root/src/FbCommands.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbCommands.cc')
-rw-r--r--src/FbCommands.cc16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc
index 11ae979..2dcec4e 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.1 2003/01/09 17:46:10 fluxgen Exp $ 22// $Id: FbCommands.cc,v 1.2 2003/02/15 01:58:06 fluxgen Exp $
23 23
24#include "FbCommands.hh" 24#include "FbCommands.hh"
25#include "fluxbox.hh" 25#include "fluxbox.hh"
@@ -61,4 +61,18 @@ void ReconfigureFluxboxCmd::execute() {
61 Fluxbox::instance()->reconfigure(); 61 Fluxbox::instance()->reconfigure();
62} 62}
63 63
64SetStyleCmd::SetStyleCmd(const std::string &filename):m_filename(filename) {
65
66}
67
68void SetStyleCmd::execute() {
69#ifdef DEBUG
70 cerr<<__FILE__<<":Loading style: "<<m_filename<<endl;
71#endif // DEBUG
72 Fluxbox::instance()->saveStyleFilename(m_filename.c_str());
73 Fluxbox::instance()->save_rc();
74 FbTk::ThemeManager::instance().load(m_filename.c_str());
75
76}
77
64}; // end namespace FbCommands 78}; // end namespace FbCommands