|
@@ -830,7 +830,7 @@ static void renderer_edited(GtkCellRendererText * cell,
|
|
static void change_sym_value(struct menu *menu, gint col)
|
|
static void change_sym_value(struct menu *menu, gint col)
|
|
{
|
|
{
|
|
struct symbol *sym = menu->sym;
|
|
struct symbol *sym = menu->sym;
|
|
- tristate oldval, newval;
|
|
|
|
|
|
+ tristate newval;
|
|
|
|
|
|
if (!sym)
|
|
if (!sym)
|
|
return;
|
|
return;
|
|
@@ -847,7 +847,6 @@ static void change_sym_value(struct menu *menu, gint col)
|
|
switch (sym_get_type(sym)) {
|
|
switch (sym_get_type(sym)) {
|
|
case S_BOOLEAN:
|
|
case S_BOOLEAN:
|
|
case S_TRISTATE:
|
|
case S_TRISTATE:
|
|
- oldval = sym_get_tristate_value(sym);
|
|
|
|
if (!sym_tristate_within_range(sym, newval))
|
|
if (!sym_tristate_within_range(sym, newval))
|
|
newval = yes;
|
|
newval = yes;
|
|
sym_set_tristate_value(sym, newval);
|
|
sym_set_tristate_value(sym, newval);
|
|
@@ -1278,7 +1277,6 @@ static void update_tree(struct menu *src, GtkTreeIter * dst)
|
|
gboolean valid;
|
|
gboolean valid;
|
|
GtkTreeIter *sibling;
|
|
GtkTreeIter *sibling;
|
|
struct symbol *sym;
|
|
struct symbol *sym;
|
|
- struct property *prop;
|
|
|
|
struct menu *menu1, *menu2;
|
|
struct menu *menu1, *menu2;
|
|
|
|
|
|
if (src == &rootmenu)
|
|
if (src == &rootmenu)
|
|
@@ -1287,7 +1285,6 @@ static void update_tree(struct menu *src, GtkTreeIter * dst)
|
|
valid = gtk_tree_model_iter_children(model2, child2, dst);
|
|
valid = gtk_tree_model_iter_children(model2, child2, dst);
|
|
for (child1 = src->list; child1; child1 = child1->next) {
|
|
for (child1 = src->list; child1; child1 = child1->next) {
|
|
|
|
|
|
- prop = child1->prompt;
|
|
|
|
sym = child1->sym;
|
|
sym = child1->sym;
|
|
|
|
|
|
reparse:
|
|
reparse:
|