1
0
Fork 0

s/show_widgets/enable_widgets/ (the function doesn't show anything)

This commit is contained in:
mfranz 2008-08-03 15:37:43 +00:00
parent c404626aa8
commit 2040b96b4f
3 changed files with 5 additions and 5 deletions

View file

@ -436,11 +436,11 @@ var dialog_update = func(dialog, objects...) {
##
# Searches a dialog tree for widgets with a particular <name> entry and
# sets their <hide> according to "show".
# sets their <hide> flag according to "show".
#
var show_widgets = func(node, name, show = 1) {
var enable_widgets = func(node, name, show = 1) {
foreach (var n; node.getChildren())
show_widgets(n, name, show);
enable_widgets(n, name, show);
if ((var n = node.getNode("name")) != nil and n.getValue() == name)
node.getNode("hide", 1).setBoolValue(!show);
}

View file

@ -170,7 +170,7 @@
<nasal>
<open>
gui.show_widgets(cmdarg(), "devel-stuff", getprop("/sim/gui/devel-widgets"));
gui.enable_widgets(cmdarg(), "devel-stuff", getprop("/sim/gui/devel-widgets"));
</open>
</nasal>
</PropertyList>

View file

@ -298,7 +298,7 @@
<nasal>
<open>
gui.show_widgets(cmdarg(), "shadows-debug", getprop("/sim/gui/devel-widgets"));
gui.enable_widgets(cmdarg(), "shadows-debug", getprop("/sim/gui/devel-widgets"));
</open>
</nasal>
</PropertyList>