Lines Matching refs: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) in text_insert_help() argument
366 const char *prompt = menu_get_prompt(menu); in text_insert_help()
369 menu_get_ext_help(menu, &help); in text_insert_help()
782 struct menu *menu; in renderer_edited() local
788 gtk_tree_model_get(model2, &iter, COL_MENU, &menu, -1); in renderer_edited()
789 sym = menu->sym; in renderer_edited()
802 static void change_sym_value(struct menu *menu, gint col) in change_sym_value() argument
804 struct symbol *sym = menu->sym; in change_sym_value()
842 static void toggle_sym_value(struct menu *menu) in toggle_sym_value() argument
844 if (!menu->sym) in toggle_sym_value()
847 sym_toggle_tristate_value(menu->sym); in toggle_sym_value()
883 struct menu *menu; in on_treeview2_button_press_event() local
901 gtk_tree_model_get(model2, &iter, COL_MENU, &menu, -1); in on_treeview2_button_press_event()
906 ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN; in on_treeview2_button_press_event()
910 current = menu; in on_treeview2_button_press_event()
914 toggle_sym_value(menu); in on_treeview2_button_press_event()
919 toggle_sym_value(menu); in on_treeview2_button_press_event()
923 change_sym_value(menu, col); in on_treeview2_button_press_event()
940 struct menu *menu; in on_treeview2_key_press_event() local
960 gtk_tree_model_get(model2, &iter, COL_MENU, &menu, -1); in on_treeview2_key_press_event()
970 change_sym_value(menu, col); in on_treeview2_key_press_event()
982 struct menu *menu; in on_treeview2_cursor_changed() local
986 gtk_tree_model_get(model2, &iter, COL_MENU, &menu, -1); in on_treeview2_cursor_changed()
987 text_insert_help(menu); in on_treeview2_cursor_changed()
1001 struct menu *menu; in on_treeview1_button_press_event() local
1013 gtk_tree_model_get(model1, &iter, COL_MENU, &menu, -1); in on_treeview1_button_press_event()
1016 toggle_sym_value(menu); in on_treeview1_button_press_event()
1017 current = menu; in on_treeview1_button_press_event()
1020 browsed = menu; in on_treeview1_button_press_event()
1033 static gchar **fill_row(struct menu *menu) in fill_row() argument
1036 struct symbol *sym = menu->sym; in fill_row()
1047 ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN; in fill_row()
1052 menu_get_prompt(menu), in fill_row()
1056 if (opt_mode == OPT_ALL && !menu_is_visible(menu)) in fill_row()
1059 menu_has_prompt(menu) && !menu_is_visible(menu)) in fill_row()
1091 struct menu *child; in fill_row()
1093 struct menu *def_menu = NULL; in fill_row()
1097 for (child = menu->list; child; child = child->next) { in fill_row()
1162 static void set_node(GtkTreeIter * node, struct menu *menu, gchar ** row) in set_node() argument
1182 COL_MENU, (gpointer) menu, in set_node()
1198 static void place_node(struct menu *menu, char **row) in place_node() argument
1204 set_node(node, menu, row); in place_node()
1215 struct menu *tofind) in gtktree_iter_find_node()
1224 struct menu *menu; in gtktree_iter_find_node() local
1226 gtk_tree_model_get(model2, child, 6, &menu, -1); in gtktree_iter_find_node()
1228 if (menu == tofind) { in gtktree_iter_find_node()
1248 static void update_tree(struct menu *src, GtkTreeIter * dst) in update_tree()
1250 struct menu *child1; in update_tree()
1256 struct menu *menu1, *menu2; in update_tree()
1334 static void display_tree(struct menu *menu) in display_tree() argument
1338 struct menu *child; in display_tree()
1341 if (menu == &rootmenu) { in display_tree()
1346 for (child = menu->list; child; child = child->next) { in display_tree()
1392 if (((view_mode == SINGLE_VIEW) && (menu->flags & MENU_ROOT)) in display_tree()
1426 static void fixup_rootmenu(struct menu *menu) in fixup_rootmenu() argument
1428 struct menu *child; in fixup_rootmenu()
1431 menu->flags |= MENU_ROOT; in fixup_rootmenu()
1432 for (child = menu->list; child; child = child->next) { in fixup_rootmenu()