aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRoman Zippel <zippel@linux-m68k.org>2004-05-06 16:30:12 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-05-06 16:30:12 -0700
commitef81b1558e4c03551d194aa52917a0210a9ae1c8 (patch)
tree71b2921d5d0801d9984e7037c2e3de38ed8622d1 /scripts
parent681b6bf7d1fdb68b789254dcfcc45d128ec18cc8 (diff)
downloadhistory-ef81b1558e4c03551d194aa52917a0210a9ae1c8.tar.gz
[PATCH] fix value toggle in gconf
gconf doesn't correctly toggle through the values of a symbol, so use sym_toggle_tristate_value() instead. Problem reported by Martin Persenius <martin@persenius.net>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/gconf.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/scripts/kconfig/gconf.c b/scripts/kconfig/gconf.c
index 10d70e333ec95..489c4ff02ac56 100644
--- a/scripts/kconfig/gconf.c
+++ b/scripts/kconfig/gconf.c
@@ -956,16 +956,10 @@ static void change_sym_value(struct menu *menu, gint col)
static void toggle_sym_value(struct menu *menu)
{
- const tristate next_val[3] = { no, mod, yes };
- tristate newval;
-
if (!menu->sym)
return;
- newval = next_val[(sym_get_tristate_value(menu->sym) + 1) % 3];
- if (!sym_tristate_within_range(menu->sym, newval))
- newval = yes;
- sym_set_tristate_value(menu->sym, newval);
+ sym_toggle_tristate_value(menu->sym);
if (view_mode == FULL_VIEW)
update_tree(&rootmenu, NULL);
else if (view_mode == SPLIT_VIEW) {