Lines Matching defs:menu

56 static struct menu *current; // current node for SINGLE view
57 static struct menu *browsed; // browsed node for SPLIT view
67 static void display_tree(struct menu *menu);
69 static void update_tree(struct menu *src, GtkTreeIter * dst);
70 static void set_node(GtkTreeIter * node, struct menu *menu, gchar ** row);
71 static gchar **fill_row(struct menu *menu);
362 static void text_insert_help(struct menu *menu)
366 const char *prompt = menu_get_prompt(menu);
369 menu_get_ext_help(menu, &help);
646 "under the Options menu.\n"
779 struct menu *menu;
785 gtk_tree_model_get(model2, &iter, COL_MENU, &menu, -1);
786 sym = menu->sym;
799 static void change_sym_value(struct menu *menu, gint col)
801 struct symbol *sym = menu->sym;
839 static void toggle_sym_value(struct menu *menu)
841 if (!menu->sym)
844 sym_toggle_tristate_value(menu->sym);
880 struct menu *menu;
898 gtk_tree_model_get(model2, &iter, COL_MENU, &menu, -1);
903 ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN;
906 // goes down into menu
907 current = menu;
911 toggle_sym_value(menu);
916 toggle_sym_value(menu);
920 change_sym_value(menu, col);
937 struct menu *menu;
957 gtk_tree_model_get(model2, &iter, COL_MENU, &menu, -1);
967 change_sym_value(menu, col);
979 struct menu *menu;
983 gtk_tree_model_get(model2, &iter, COL_MENU, &menu, -1);
984 text_insert_help(menu);
998 struct menu *menu;
1010 gtk_tree_model_get(model1, &iter, COL_MENU, &menu, -1);
1013 toggle_sym_value(menu);
1014 current = menu;
1017 browsed = menu;
1030 static gchar **fill_row(struct menu *menu)
1033 struct symbol *sym = menu->sym;
1044 ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN;
1049 menu_get_prompt(menu),
1053 if (opt_mode == OPT_ALL && !menu_is_visible(menu))
1056 menu_has_prompt(menu) && !menu_is_visible(menu))
1088 struct menu *child;
1090 struct menu *def_menu = NULL;
1094 for (child = menu->list; child; child = child->next) {
1159 static void set_node(GtkTreeIter * node, struct menu *menu, gchar ** row)
1179 COL_MENU, (gpointer) menu,
1195 static void place_node(struct menu *menu, char **row)
1201 set_node(node, menu, row);
1209 * Find a menu in the GtkTree starting at parent.
1212 struct menu *tofind)
1221 struct menu *menu;
1223 gtk_tree_model_get(model2, child, 6, &menu, -1);
1225 if (menu == tofind) {
1245 static void update_tree(struct menu *src, GtkTreeIter * dst)
1247 struct menu *child1;
1253 struct menu *menu1, *menu2;
1331 static void display_tree(struct menu *menu)
1335 struct menu *child;
1338 if (menu == &rootmenu) {
1343 for (child = menu->list; child; child = child->next) {
1380 if (((menu != &rootmenu) && !(menu->flags & MENU_ROOT))
1389 if (((view_mode == SINGLE_VIEW) && (menu->flags & MENU_ROOT))
1423 static void fixup_rootmenu(struct menu *menu)
1425 struct menu *child;
1428 menu->flags |= MENU_ROOT;
1429 for (child = menu->list; child; child = child->next) {