Lines Matching refs:menu

62 static struct menu *current; // current node for SINGLE view
63 static struct menu *browsed; // browsed node for SPLIT view
73 static void display_tree(struct menu *menu);
75 static void update_tree(struct menu *src, GtkTreeIter * dst);
76 static void set_node(GtkTreeIter * node, struct menu *menu, gchar ** row);
77 static gchar **fill_row(struct menu *menu);
367 static void text_insert_help(struct menu *menu) in text_insert_help() argument
371 const char *prompt = menu_get_prompt(menu); in text_insert_help()
374 menu_get_ext_help(menu, &help); in text_insert_help()
786 struct menu *menu; in renderer_edited() local
792 gtk_tree_model_get(model2, &iter, COL_MENU, &menu, -1); in renderer_edited()
793 sym = menu->sym; in renderer_edited()
806 static void change_sym_value(struct menu *menu, gint col) in change_sym_value() argument
808 struct symbol *sym = menu->sym; in change_sym_value()
846 static void toggle_sym_value(struct menu *menu) in toggle_sym_value() argument
848 if (!menu->sym) in toggle_sym_value()
851 sym_toggle_tristate_value(menu->sym); in toggle_sym_value()
887 struct menu *menu; in on_treeview2_button_press_event() local
905 gtk_tree_model_get(model2, &iter, COL_MENU, &menu, -1); in on_treeview2_button_press_event()
910 ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN; in on_treeview2_button_press_event()
914 current = menu; in on_treeview2_button_press_event()
918 toggle_sym_value(menu); in on_treeview2_button_press_event()
923 toggle_sym_value(menu); in on_treeview2_button_press_event()
927 change_sym_value(menu, col); in on_treeview2_button_press_event()
944 struct menu *menu; in on_treeview2_key_press_event() local
964 gtk_tree_model_get(model2, &iter, COL_MENU, &menu, -1); in on_treeview2_key_press_event()
974 change_sym_value(menu, col); in on_treeview2_key_press_event()
986 struct menu *menu; in on_treeview2_cursor_changed() local
990 gtk_tree_model_get(model2, &iter, COL_MENU, &menu, -1); in on_treeview2_cursor_changed()
991 text_insert_help(menu); in on_treeview2_cursor_changed()
1005 struct menu *menu; in on_treeview1_button_press_event() local
1017 gtk_tree_model_get(model1, &iter, COL_MENU, &menu, -1); in on_treeview1_button_press_event()
1020 toggle_sym_value(menu); in on_treeview1_button_press_event()
1021 current = menu; in on_treeview1_button_press_event()
1024 browsed = menu; in on_treeview1_button_press_event()
1037 static gchar **fill_row(struct menu *menu) in fill_row() argument
1040 struct symbol *sym = menu->sym; in fill_row()
1052 g_strdup_printf("%s %s", menu_get_prompt(menu), in fill_row()
1055 if (opt_mode == OPT_ALL && !menu_is_visible(menu)) in fill_row()
1058 menu_has_prompt(menu) && !menu_is_visible(menu)) in fill_row()
1063 ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN; 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 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()