From 644f8a56fc05efeede23a64525b6e5aa8161a358 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 28 Apr 2002 18:47:47 +0000 Subject: reconfigure in case statement --- src/Rootmenu.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Rootmenu.cc b/src/Rootmenu.cc index c0de857..4e92d5f 100644 --- a/src/Rootmenu.cc +++ b/src/Rootmenu.cc @@ -19,8 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// stupid macros needed to access some functions in version 2 of the GNU C -// library +//Use GNU extensions #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif // _GNU_SOURCE @@ -97,14 +96,14 @@ void Rootmenu::itemSelected(int button, unsigned int index) { case BScreen::SETSTYLE: if (item->exec().size()) { fluxbox->saveStyleFilename(item->exec().c_str()); - fluxbox->reconfigureTabs(); //TODO + fluxbox->reconfigureTabs(); } - + fluxbox->reconfigure(); + break; case BScreen::RECONFIGURE: fluxbox->reconfigure(); return; } - if (! (screen->getRootmenu()->isTorn() || isTorn()) && item->function() != BScreen::RECONFIGURE && item->function() != BScreen::SETSTYLE) -- cgit v0.11.2