From 60231936357b4258a832e824408f579490ab54f6 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 28 Apr 2002 16:00:27 +0000 Subject: Save settings when we change them --- src/Configmenu.cc | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/Configmenu.cc b/src/Configmenu.cc index 728b82b..e15ab81 100644 --- a/src/Configmenu.cc +++ b/src/Configmenu.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Configmenu.cc,v 1.13 2002/04/12 15:14:09 fluxgen Exp $ +// $Id: Configmenu.cc,v 1.14 2002/04/28 16:00:27 fluxgen Exp $ // stupid macros needed to access some functions in version 2 of the GNU C // library @@ -195,6 +195,9 @@ void Configmenu::itemSelected(int button, unsigned int index) { break; } + //save resources + Fluxbox::instance()->save_rc(); + } } @@ -289,7 +292,10 @@ void Configmenu::Focusmenu::itemSelected(int button, unsigned int index) { break; } - + //save resources + Fluxbox::instance()->save_rc(); + + //toggle options setItemSelected(0, !(configmenu->screen->isSloppyFocus() || configmenu->screen->isSemiSloppyFocus())); setItemSelected(1, configmenu->screen->isSloppyFocus()); @@ -427,6 +433,8 @@ void Configmenu::Placementmenu::itemSelected(int button, unsigned int index) { break; } + //save resources + Fluxbox::instance()->save_rc(); } } } @@ -638,7 +646,8 @@ void Configmenu::Tabmenu::itemSelected(int button, unsigned int index) { configmenu->screen->saveTabRotateVertical(True); break; } - + //save resources + Fluxbox::instance()->save_rc(); Fluxbox::instance()->reconfigureTabs(); //TODO setSelected(); } -- cgit v0.11.2