From e4f08637f7fc4f745f7865daef41da761c62ea3c Mon Sep 17 00:00:00 2001 From: mfranz Date: Thu, 9 Mar 2006 23:04:41 +0000 Subject: [PATCH] move gui styles from /sim/gui[n] to /sim/gui/style[n] to make /sim/gui free for other gui related properties --- src/GUI/new_gui.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/GUI/new_gui.cxx b/src/GUI/new_gui.cxx index f8528dfbf..49fc3fbc5 100644 --- a/src/GUI/new_gui.cxx +++ b/src/GUI/new_gui.cxx @@ -305,11 +305,11 @@ NewGUI::setStyle (void) //puSetDefaultStyle(); - int which = fgGetInt("/sim/current-gui", 0); - SGPropertyNode *sim = globals->get_props()->getNode("sim"); - SGPropertyNode *n = sim->getChild("gui", which); + int which = fgGetInt("/sim/gui/current-style", 0); + SGPropertyNode *sim = globals->get_props()->getNode("sim/gui"); + SGPropertyNode *n = sim->getChild("style", which); if (!n) - n = sim->getChild("gui", 0, true); + n = sim->getChild("style", 0, true); setupFont(n->getNode("fonts/gui", true)); n = n->getNode("colors", true); -- 2.39.5