menu               83 lib/widget/menu.c menu_arrange (menu_t * menu, dlg_shortcut_str get_shortcut)
menu               85 lib/widget/menu.c     if (menu != NULL)
menu               90 lib/widget/menu.c         menu->max_entry_len = 1;
menu               91 lib/widget/menu.c         menu->max_hotkey_len = 1;
menu               93 lib/widget/menu.c         for (i = menu->entries; i != NULL; i = g_list_next (i))
menu              102 lib/widget/menu.c                 menu->max_hotkey_len = MAX (menu->max_hotkey_len, len);
menu              115 lib/widget/menu.c         menu->max_entry_len = menu->max_hotkey_len + max_shortcut_len;
menu              125 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              126 lib/widget/menu.c     const menu_entry_t *entry = MENUENTRY (g_list_nth_data (menu->entries, idx));
menu              128 lib/widget/menu.c     int x = menu->start_x;
menu              130 lib/widget/menu.c     if (x + menu->max_entry_len + 4 > (gsize) w->cols)
menu              131 lib/widget/menu.c         x = w->cols - menu->max_entry_len - 4;
menu              140 lib/widget/menu.c         tty_draw_hline (w->y + y, w->x + x, ACS_HLINE, menu->max_entry_len + 3);
menu              141 lib/widget/menu.c         widget_move (w, y, x + menu->max_entry_len + 3);
menu              153 lib/widget/menu.c         tty_draw_hline (yt, xt, ' ', menu->max_entry_len + 2);  /* clear line */
menu              168 lib/widget/menu.c             widget_move (w, y, x + menu->max_hotkey_len + 3);
menu              183 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              184 lib/widget/menu.c     const unsigned int count = g_list_length (menu->entries);
menu              185 lib/widget/menu.c     int column = menu->start_x - 1;
menu              188 lib/widget/menu.c     if (column + menu->max_entry_len + 5 > (gsize) w->cols)
menu              189 lib/widget/menu.c         column = w->cols - menu->max_entry_len - 5;
menu              192 lib/widget/menu.c     tty_draw_box (w->y + 1, w->x + column, count + 2, menu->max_entry_len + 5, FALSE);
menu              196 lib/widget/menu.c                            i == menu->selected ? MENU_SELECTED_COLOR : MENU_ENTRY_COLOR);
menu              225 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menu              227 lib/widget/menu.c         menu_t *menu = MENU (i->data);
menu              228 lib/widget/menu.c         gboolean is_selected = (menubar->selected == (gsize) g_list_position (menubar->menu, i));
menu              231 lib/widget/menu.c         widget_move (w, 0, menu->start_x);
menu              234 lib/widget/menu.c         tty_print_string (menu->text.start);
menu              236 lib/widget/menu.c         if (menu->text.hotkey != NULL)
menu              239 lib/widget/menu.c             tty_print_string (menu->text.hotkey);
menu              243 lib/widget/menu.c         if (menu->text.end != NULL)
menu              244 lib/widget/menu.c             tty_print_string (menu->text.end);
menu              252 lib/widget/menu.c         widget_move (w, 0, MENU (g_list_nth_data (menubar->menu, menubar->selected))->start_x);
menu              287 lib/widget/menu.c         menubar->selected = g_list_length (menubar->menu) - 1;
menu              299 lib/widget/menu.c     menubar->selected = (menubar->selected + 1) % g_list_length (menubar->menu);
menu              339 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              340 lib/widget/menu.c     const menu_entry_t *entry = MENUENTRY (g_list_nth_data (menu->entries, menu->selected));
menu              358 lib/widget/menu.c     menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              359 lib/widget/menu.c     const unsigned int len = g_list_length (menu->entries);
menu              362 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menu              366 lib/widget/menu.c         menu->selected = (menu->selected + 1) % len;
menu              367 lib/widget/menu.c         entry = MENUENTRY (g_list_nth_data (menu->entries, menu->selected));
menu              371 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menu              379 lib/widget/menu.c     menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              380 lib/widget/menu.c     const unsigned int len = g_list_length (menu->entries);
menu              383 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menu              387 lib/widget/menu.c         if (menu->selected == 0)
menu              388 lib/widget/menu.c             menu->selected = len - 1;
menu              390 lib/widget/menu.c             menu->selected--;
menu              391 lib/widget/menu.c         entry = MENUENTRY (g_list_nth_data (menu->entries, menu->selected));
menu              395 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menu              405 lib/widget/menu.c         menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              407 lib/widget/menu.c         if (menu->selected == 0)
menu              410 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menu              412 lib/widget/menu.c         menu->selected = 0;
menu              418 lib/widget/menu.c             entry = MENUENTRY (g_list_nth_data (menu->entries, menu->selected));
menu              421 lib/widget/menu.c                 menu->selected++;
menu              426 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menu              442 lib/widget/menu.c         menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              443 lib/widget/menu.c         const unsigned int len = g_list_length (menu->entries);
menu              446 lib/widget/menu.c         if (menu->selected == len - 1)
menu              449 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menu              451 lib/widget/menu.c         menu->selected = len;
menu              455 lib/widget/menu.c             menu->selected--;
menu              456 lib/widget/menu.c             entry = MENUENTRY (g_list_nth_data (menu->entries, menu->selected));
menu              460 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menu              464 lib/widget/menu.c         menubar->selected = g_list_length (menubar->menu) - 1;
menu              476 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menu              478 lib/widget/menu.c         menu_t *menu = MENU (i->data);
menu              480 lib/widget/menu.c         if (menu->text.hotkey != NULL && hotkey == g_ascii_tolower (menu->text.hotkey[0]))
menu              482 lib/widget/menu.c             menubar_drop (menubar, g_list_position (menubar->menu, i));
menu              495 lib/widget/menu.c     menu_t *menu;
menu              498 lib/widget/menu.c     menu = g_list_nth_data (menubar->menu, menubar->selected);
menu              500 lib/widget/menu.c     for (i = menu->entries; i != NULL; i = g_list_next (i))
menu              507 lib/widget/menu.c             menu->selected = g_list_position (menu->entries, i);
menu              531 lib/widget/menu.c                     MENU (g_list_nth_data (menubar->menu, menubar->selected))->help_node;
menu              628 lib/widget/menu.c     if (menubar->menu != NULL)
menu              629 lib/widget/menu.c         g_list_free_full (menubar->menu, (GDestroyNotify) destroy_menu);
menu              692 lib/widget/menu.c     GList *menu;
menu              694 lib/widget/menu.c     for (i = 0, menu = menubar->menu;
menu              695 lib/widget/menu.c          menu != NULL && x >= MENU (menu->data)->start_x; i++, menu = g_list_next (menu))
menu              711 lib/widget/menu.c     menu_t *menu;
menu              717 lib/widget/menu.c     menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              718 lib/widget/menu.c     left_x = menu->start_x;
menu              719 lib/widget/menu.c     right_x = left_x + menu->max_entry_len + 3;
menu              722 lib/widget/menu.c         left_x = w->cols - (menu->max_entry_len + 3);
menu              726 lib/widget/menu.c     bottom_y = g_list_length (menu->entries) + 2;       /* skip bar and top frame */
menu              736 lib/widget/menu.c     menu_t *menu;
menu              740 lib/widget/menu.c     menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              741 lib/widget/menu.c     entry = MENUENTRY (g_list_nth_data (menu->entries, y));
menu              745 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menu              746 lib/widget/menu.c         menu->selected = y;
menu              747 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menu              901 lib/widget/menu.c     menu_t *menu;
menu              903 lib/widget/menu.c     menu = g_new (menu_t, 1);
menu              904 lib/widget/menu.c     menu->start_x = 0;
menu              905 lib/widget/menu.c     menu->text = parse_hotkey (name);
menu              906 lib/widget/menu.c     menu->entries = entries;
menu              907 lib/widget/menu.c     menu->max_entry_len = 1;
menu              908 lib/widget/menu.c     menu->max_hotkey_len = 0;
menu              909 lib/widget/menu.c     menu->selected = 0;
menu              910 lib/widget/menu.c     menu->help_node = g_strdup (help_node);
menu              912 lib/widget/menu.c     return menu;
menu              918 lib/widget/menu.c menu_set_name (menu_t * menu, const char *name)
menu              920 lib/widget/menu.c     release_hotkey (menu->text);
menu              921 lib/widget/menu.c     menu->text = parse_hotkey (name);
menu              927 lib/widget/menu.c destroy_menu (menu_t * menu)
menu              929 lib/widget/menu.c     release_hotkey (menu->text);
menu              930 lib/widget/menu.c     g_list_free_full (menu->entries, (GDestroyNotify) menu_entry_free);
menu              931 lib/widget/menu.c     g_free (menu->help_node);
menu              932 lib/widget/menu.c     g_free (menu);
menu              938 lib/widget/menu.c menubar_new (GList * menu, gboolean visible)
menu              951 lib/widget/menu.c     menubar_set_menu (menubar, menu);
menu              959 lib/widget/menu.c menubar_set_menu (WMenuBar * menubar, GList * menu)
menu              965 lib/widget/menu.c     menubar->menu = menu;
menu              974 lib/widget/menu.c menubar_add_menu (WMenuBar * menubar, menu_t * menu)
menu              976 lib/widget/menu.c     if (menu != NULL)
menu              978 lib/widget/menu.c         menu_arrange (menu, WIDGET (menubar)->owner->get_shortcut);
menu              979 lib/widget/menu.c         menubar->menu = g_list_append (menubar->menu, menu);
menu              998 lib/widget/menu.c     if (menubar->menu == NULL)
menu             1004 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menu             1006 lib/widget/menu.c         menu_t *menu = MENU (i->data);
menu             1009 lib/widget/menu.c         menu->start_x = hotkey_width (menu->text) + 2;
menu             1010 lib/widget/menu.c         gap -= menu->start_x;
menu             1013 lib/widget/menu.c     if (g_list_next (menubar->menu) == NULL)
menu             1016 lib/widget/menu.c         gap /= (g_list_length (menubar->menu) - 1);
menu             1027 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menu             1029 lib/widget/menu.c         menu_t *menu = MENU (i->data);
menu             1030 lib/widget/menu.c         int len = menu->start_x;
menu             1032 lib/widget/menu.c         menu->start_x = start_x;
menu               35 lib/widget/menu.h     GList *menu;                /* The actual menus */
menu               50 lib/widget/menu.h void menu_set_name (menu_t * menu, const char *name);
menu               51 lib/widget/menu.h void destroy_menu (menu_t * menu);
menu               53 lib/widget/menu.h WMenuBar *menubar_new (GList * menu, gboolean visible);
menu               54 lib/widget/menu.h void menubar_set_menu (WMenuBar * menubar, GList * menu);
menu               55 lib/widget/menu.h void menubar_add_menu (WMenuBar * menubar, menu_t * menu);
menu              392 src/filemanager/midnight.c         selected = g_list_length (the_menubar->menu) - 1;
menu               75 src/usermenu.c static char *menu = NULL;
menu              868 src/usermenu.c         if (menu != NULL)
menu              870 src/usermenu.c             result = quote_func (menu, FALSE);
menu              948 src/usermenu.c         menu = g_strdup (menu_file);
menu              950 src/usermenu.c         menu = g_strdup (edit_widget != NULL ? EDIT_LOCAL_MENU : MC_LOCAL_MENU);
menu              951 src/usermenu.c     if (!exist_file (menu) || !menu_file_own (menu))
menu              955 src/usermenu.c             message (D_ERROR, MSG_ERROR, _("Cannot open file %s\n%s"), menu,
menu              957 src/usermenu.c             MC_PTR_FREE (menu);
menu              961 src/usermenu.c         g_free (menu);
menu              963 src/usermenu.c             menu = mc_config_get_full_path (EDIT_HOME_MENU);
menu              965 src/usermenu.c             menu = mc_config_get_full_path (MC_USERMENU_FILE);
menu              967 src/usermenu.c         if (!exist_file (menu))
menu              969 src/usermenu.c             g_free (menu);
menu              970 src/usermenu.c             menu =
menu              974 src/usermenu.c             if (!exist_file (menu))
menu              976 src/usermenu.c                 g_free (menu);
menu              977 src/usermenu.c                 menu =
menu              981 src/usermenu.c                 if (!exist_file (menu))
menu              983 src/usermenu.c                     g_free (menu);
menu              984 src/usermenu.c                     menu =
menu              993 src/usermenu.c     if (!g_file_get_contents (menu, &data, NULL, NULL))
menu              995 src/usermenu.c         message (D_ERROR, MSG_ERROR, _("Cannot open file %s\n%s"), menu, unix_error_string (errno));
menu              996 src/usermenu.c         MC_PTR_FREE (menu);
menu             1101 src/usermenu.c         message (D_ERROR, MSG_ERROR, _("No suitable entries found in %s"), menu);
menu             1139 src/usermenu.c     MC_PTR_FREE (menu);