diff options
author | fluxgen <fluxgen> | 2003-02-15 01:58:06 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-02-15 01:58:06 (GMT) |
commit | 2031f46de3475f52a54165740bf8c2b891b3bebe (patch) | |
tree | faa66894d8944b601ca9321d35fdbad321f96f1b /src/FbCommands.cc | |
parent | 96c49e2d0d103d9a4d6e5a12e33fc4f7ab83c24e (diff) | |
download | fluxbox_pavel-2031f46de3475f52a54165740bf8c2b891b3bebe.zip fluxbox_pavel-2031f46de3475f52a54165740bf8c2b891b3bebe.tar.bz2 |
added SetStyleCmd
Diffstat (limited to 'src/FbCommands.cc')
-rw-r--r-- | src/FbCommands.cc | 16 |
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 | ||
64 | SetStyleCmd::SetStyleCmd(const std::string &filename):m_filename(filename) { | ||
65 | |||
66 | } | ||
67 | |||
68 | void 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 |