reconfigure in case statement
This commit is contained in:
parent
86c9f77aa2
commit
644f8a56fc
1 changed files with 4 additions and 5 deletions
|
@ -19,8 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// stupid macros needed to access some functions in version 2 of the GNU C
|
//Use GNU extensions
|
||||||
// library
|
|
||||||
#ifndef _GNU_SOURCE
|
#ifndef _GNU_SOURCE
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#endif // _GNU_SOURCE
|
#endif // _GNU_SOURCE
|
||||||
|
@ -97,14 +96,14 @@ void Rootmenu::itemSelected(int button, unsigned int index) {
|
||||||
case BScreen::SETSTYLE:
|
case BScreen::SETSTYLE:
|
||||||
if (item->exec().size()) {
|
if (item->exec().size()) {
|
||||||
fluxbox->saveStyleFilename(item->exec().c_str());
|
fluxbox->saveStyleFilename(item->exec().c_str());
|
||||||
fluxbox->reconfigureTabs(); //TODO
|
fluxbox->reconfigureTabs();
|
||||||
}
|
}
|
||||||
|
fluxbox->reconfigure();
|
||||||
|
break;
|
||||||
case BScreen::RECONFIGURE:
|
case BScreen::RECONFIGURE:
|
||||||
fluxbox->reconfigure();
|
fluxbox->reconfigure();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! (screen->getRootmenu()->isTorn() || isTorn()) &&
|
if (! (screen->getRootmenu()->isTorn() || isTorn()) &&
|
||||||
item->function() != BScreen::RECONFIGURE &&
|
item->function() != BScreen::RECONFIGURE &&
|
||||||
item->function() != BScreen::SETSTYLE)
|
item->function() != BScreen::SETSTYLE)
|
||||||
|
|
Loading…
Reference in a new issue