menu               82 lib/widget/menu.c menu_arrange (menu_t * menu, dlg_shortcut_str get_shortcut)
menu               84 lib/widget/menu.c     if (menu != NULL)
menu               89 lib/widget/menu.c         menu->max_entry_len = 1;
menu               90 lib/widget/menu.c         menu->max_hotkey_len = 1;
menu               92 lib/widget/menu.c         for (i = menu->entries; i != NULL; i = g_list_next (i))
menu              101 lib/widget/menu.c                 menu->max_hotkey_len = MAX (menu->max_hotkey_len, len);
menu              114 lib/widget/menu.c         menu->max_entry_len = menu->max_hotkey_len + max_shortcut_len;
menu              124 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              125 lib/widget/menu.c     const menu_entry_t *entry = MENUENTRY (g_list_nth_data (menu->entries, idx));
menu              127 lib/widget/menu.c     int x = menu->start_x;
menu              129 lib/widget/menu.c     if (x + menu->max_entry_len + 4 > (gsize) w->cols)
menu              130 lib/widget/menu.c         x = w->cols - menu->max_entry_len - 4;
menu              139 lib/widget/menu.c         tty_draw_hline (w->y + y, w->x + x, ACS_HLINE, menu->max_entry_len + 3);
menu              140 lib/widget/menu.c         widget_gotoyx (w, y, x + menu->max_entry_len + 3);
menu              152 lib/widget/menu.c         tty_draw_hline (yt, xt, ' ', menu->max_entry_len + 2);  /* clear line */
menu              167 lib/widget/menu.c             widget_gotoyx (w, y, x + menu->max_hotkey_len + 3);
menu              182 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              183 lib/widget/menu.c     const unsigned int count = g_list_length (menu->entries);
menu              184 lib/widget/menu.c     int column = menu->start_x - 1;
menu              187 lib/widget/menu.c     if (column + menu->max_entry_len + 5 > (gsize) w->cols)
menu              188 lib/widget/menu.c         column = w->cols - menu->max_entry_len - 5;
menu              191 lib/widget/menu.c         tty_draw_box_shadow (w->y + 1, w->x + column, count + 2, menu->max_entry_len + 5,
menu              195 lib/widget/menu.c     tty_draw_box (w->y + 1, w->x + column, count + 2, menu->max_entry_len + 5, FALSE);
menu              199 lib/widget/menu.c                            i == menu->selected ? MENU_SELECTED_COLOR : MENU_ENTRY_COLOR);
menu              228 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menu              230 lib/widget/menu.c         menu_t *menu = MENU (i->data);
menu              231 lib/widget/menu.c         gboolean is_selected = (menubar->selected == (gsize) g_list_position (menubar->menu, i));
menu              234 lib/widget/menu.c         widget_gotoyx (w, 0, menu->start_x);
menu              237 lib/widget/menu.c         tty_print_string (menu->text.start);
menu              239 lib/widget/menu.c         if (menu->text.hotkey != NULL)
menu              242 lib/widget/menu.c             tty_print_string (menu->text.hotkey);
menu              246 lib/widget/menu.c         if (menu->text.end != NULL)
menu              247 lib/widget/menu.c             tty_print_string (menu->text.end);
menu              255 lib/widget/menu.c         widget_gotoyx (w, 0, MENU (g_list_nth_data (menubar->menu, menubar->selected))->start_x);
menu              290 lib/widget/menu.c         menubar->selected = g_list_length (menubar->menu) - 1;
menu              302 lib/widget/menu.c     menubar->selected = (menubar->selected + 1) % g_list_length (menubar->menu);
menu              350 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              351 lib/widget/menu.c     const menu_entry_t *entry = MENUENTRY (g_list_nth_data (menu->entries, menu->selected));
menu              369 lib/widget/menu.c     menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              370 lib/widget/menu.c     const unsigned int len = g_list_length (menu->entries);
menu              373 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menu              377 lib/widget/menu.c         menu->selected = (menu->selected + 1) % len;
menu              378 lib/widget/menu.c         entry = MENUENTRY (g_list_nth_data (menu->entries, menu->selected));
menu              382 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menu              390 lib/widget/menu.c     menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              391 lib/widget/menu.c     const unsigned int len = g_list_length (menu->entries);
menu              394 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menu              398 lib/widget/menu.c         if (menu->selected == 0)
menu              399 lib/widget/menu.c             menu->selected = len - 1;
menu              401 lib/widget/menu.c             menu->selected--;
menu              402 lib/widget/menu.c         entry = MENUENTRY (g_list_nth_data (menu->entries, menu->selected));
menu              406 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menu              416 lib/widget/menu.c         menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              418 lib/widget/menu.c         if (menu->selected == 0)
menu              421 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menu              423 lib/widget/menu.c         menu->selected = 0;
menu              429 lib/widget/menu.c             entry = MENUENTRY (g_list_nth_data (menu->entries, menu->selected));
menu              432 lib/widget/menu.c                 menu->selected++;
menu              437 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menu              453 lib/widget/menu.c         menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              454 lib/widget/menu.c         const unsigned int len = g_list_length (menu->entries);
menu              457 lib/widget/menu.c         if (menu->selected == len - 1)
menu              460 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menu              462 lib/widget/menu.c         menu->selected = len;
menu              466 lib/widget/menu.c             menu->selected--;
menu              467 lib/widget/menu.c             entry = MENUENTRY (g_list_nth_data (menu->entries, menu->selected));
menu              471 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menu              475 lib/widget/menu.c         menubar->selected = g_list_length (menubar->menu) - 1;
menu              487 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menu              489 lib/widget/menu.c         menu_t *menu = MENU (i->data);
menu              491 lib/widget/menu.c         if (menu->text.hotkey != NULL && hotkey == g_ascii_tolower (menu->text.hotkey[0]))
menu              493 lib/widget/menu.c             menubar_drop (menubar, g_list_position (menubar->menu, i));
menu              506 lib/widget/menu.c     menu_t *menu;
menu              509 lib/widget/menu.c     menu = g_list_nth_data (menubar->menu, menubar->selected);
menu              511 lib/widget/menu.c     for (i = menu->entries; i != NULL; i = g_list_next (i))
menu              518 lib/widget/menu.c             menu->selected = g_list_position (menu->entries, i);
menu              542 lib/widget/menu.c                     MENU (g_list_nth_data (menubar->menu, menubar->selected))->help_node;
menu              639 lib/widget/menu.c     g_clear_list (&menubar->menu, (GDestroyNotify) destroy_menu);
menu              703 lib/widget/menu.c     GList *menu;
menu              705 lib/widget/menu.c     for (i = 0, menu = menubar->menu;
menu              706 lib/widget/menu.c          menu != NULL && x >= MENU (menu->data)->start_x; i++, menu = g_list_next (menu))
menu              722 lib/widget/menu.c     menu_t *menu;
menu              728 lib/widget/menu.c     menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              729 lib/widget/menu.c     left_x = menu->start_x;
menu              730 lib/widget/menu.c     right_x = left_x + menu->max_entry_len + 3;
menu              733 lib/widget/menu.c         left_x = w->cols - (menu->max_entry_len + 3);
menu              737 lib/widget/menu.c     bottom_y = g_list_length (menu->entries) + 2;       /* skip bar and top frame */
menu              747 lib/widget/menu.c     menu_t *menu;
menu              751 lib/widget/menu.c     menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              752 lib/widget/menu.c     entry = MENUENTRY (g_list_nth_data (menu->entries, y));
menu              756 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menu              757 lib/widget/menu.c         menu->selected = y;
menu              758 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menu              912 lib/widget/menu.c     menu_t *menu;
menu              914 lib/widget/menu.c     menu = g_new (menu_t, 1);
menu              915 lib/widget/menu.c     menu->start_x = 0;
menu              916 lib/widget/menu.c     menu->text = hotkey_new (name);
menu              917 lib/widget/menu.c     menu->entries = entries;
menu              918 lib/widget/menu.c     menu->max_entry_len = 1;
menu              919 lib/widget/menu.c     menu->max_hotkey_len = 0;
menu              920 lib/widget/menu.c     menu->selected = 0;
menu              921 lib/widget/menu.c     menu->help_node = g_strdup (help_node);
menu              923 lib/widget/menu.c     return menu;
menu              929 lib/widget/menu.c menu_set_name (menu_t * menu, const char *name)
menu              931 lib/widget/menu.c     hotkey_free (menu->text);
menu              932 lib/widget/menu.c     menu->text = hotkey_new (name);
menu              938 lib/widget/menu.c destroy_menu (menu_t * menu)
menu              940 lib/widget/menu.c     hotkey_free (menu->text);
menu              941 lib/widget/menu.c     g_list_free_full (menu->entries, (GDestroyNotify) menu_entry_free);
menu              942 lib/widget/menu.c     g_free (menu->help_node);
menu              943 lib/widget/menu.c     g_free (menu);
menu              949 lib/widget/menu.c menubar_new (GList * menu)
menu              962 lib/widget/menu.c     menubar_set_menu (menubar, menu);
menu              970 lib/widget/menu.c menubar_set_menu (WMenuBar * menubar, GList * menu)
menu              976 lib/widget/menu.c     menubar->menu = menu;
menu              985 lib/widget/menu.c menubar_add_menu (WMenuBar * menubar, menu_t * menu)
menu              987 lib/widget/menu.c     if (menu != NULL)
menu              989 lib/widget/menu.c         menu_arrange (menu, DIALOG (WIDGET (menubar)->owner)->get_shortcut);
menu              990 lib/widget/menu.c         menubar->menu = g_list_append (menubar->menu, menu);
menu             1009 lib/widget/menu.c     if (menubar->menu == NULL)
menu             1015 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menu             1017 lib/widget/menu.c         menu_t *menu = MENU (i->data);
menu             1020 lib/widget/menu.c         menu->start_x = hotkey_width (menu->text) + 2;
menu             1021 lib/widget/menu.c         gap -= menu->start_x;
menu             1024 lib/widget/menu.c     if (g_list_next (menubar->menu) == NULL)
menu             1027 lib/widget/menu.c         gap /= (g_list_length (menubar->menu) - 1);
menu             1038 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menu             1040 lib/widget/menu.c         menu_t *menu = MENU (i->data);
menu             1041 lib/widget/menu.c         int len = menu->start_x;
menu             1043 lib/widget/menu.c         menu->start_x = start_x;
menu               34 lib/widget/menu.h     GList *menu;                /* The actual menus */
menu               49 lib/widget/menu.h void menu_set_name (menu_t * menu, const char *name);
menu               50 lib/widget/menu.h void destroy_menu (menu_t * menu);
menu               52 lib/widget/menu.h WMenuBar *menubar_new (GList * menu);
menu               53 lib/widget/menu.h void menubar_set_menu (WMenuBar * menubar, GList * menu);
menu               54 lib/widget/menu.h void menubar_add_menu (WMenuBar * menubar, menu_t * menu);
menu              386 src/filemanager/filemanager.c         selected = g_list_length (the_menubar->menu) - 1;
menu              902 src/keymap.c           LOAD_KEYMAP (MENU, menu);
menu              932 src/keymap.c       SET_MAP (menu);
menu              967 src/keymap.c       FREE_KEYMAP (menu);
menu               76 src/usermenu.c static char *menu = NULL;
menu              888 src/usermenu.c         if (menu != NULL)
menu              890 src/usermenu.c             result = quote_func (menu, FALSE);
menu              968 src/usermenu.c         menu = g_strdup (menu_file);
menu              970 src/usermenu.c         menu = g_strdup (edit_widget != NULL ? EDIT_LOCAL_MENU : MC_LOCAL_MENU);
menu              971 src/usermenu.c     if (!exist_file (menu) || !menu_file_own (menu))
menu              975 src/usermenu.c             message (D_ERROR, MSG_ERROR, _("Cannot open file %s\n%s"), menu,
menu              977 src/usermenu.c             MC_PTR_FREE (menu);
menu              981 src/usermenu.c         g_free (menu);
menu              983 src/usermenu.c             menu = mc_config_get_full_path (EDIT_HOME_MENU);
menu              985 src/usermenu.c             menu = mc_config_get_full_path (MC_USERMENU_FILE);
menu              987 src/usermenu.c         if (!exist_file (menu))
menu              989 src/usermenu.c             g_free (menu);
menu              990 src/usermenu.c             menu =
menu              994 src/usermenu.c             if (!exist_file (menu))
menu              996 src/usermenu.c                 g_free (menu);
menu              997 src/usermenu.c                 menu =
menu             1001 src/usermenu.c                 if (!exist_file (menu))
menu             1003 src/usermenu.c                     g_free (menu);
menu             1004 src/usermenu.c                     menu =
menu             1013 src/usermenu.c     if (!g_file_get_contents (menu, &data, NULL, NULL))
menu             1015 src/usermenu.c         message (D_ERROR, MSG_ERROR, _("Cannot open file %s\n%s"), menu, unix_error_string (errno));
menu             1016 src/usermenu.c         MC_PTR_FREE (menu);
menu             1121 src/usermenu.c         message (D_ERROR, MSG_ERROR, _("No suitable entries found in %s"), menu);
menu             1159 src/usermenu.c     MC_PTR_FREE (menu);