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 (w->y + 1, w->x + column, count + 2, menu->max_entry_len + 5, FALSE);
menu              195 lib/widget/menu.c                            i == menu->selected ? MENU_SELECTED_COLOR : MENU_ENTRY_COLOR);
menu              224 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menu              226 lib/widget/menu.c         menu_t *menu = MENU (i->data);
menu              227 lib/widget/menu.c         gboolean is_selected = (menubar->selected == (gsize) g_list_position (menubar->menu, i));
menu              230 lib/widget/menu.c         widget_gotoyx (w, 0, menu->start_x);
menu              233 lib/widget/menu.c         tty_print_string (menu->text.start);
menu              235 lib/widget/menu.c         if (menu->text.hotkey != NULL)
menu              238 lib/widget/menu.c             tty_print_string (menu->text.hotkey);
menu              242 lib/widget/menu.c         if (menu->text.end != NULL)
menu              243 lib/widget/menu.c             tty_print_string (menu->text.end);
menu              251 lib/widget/menu.c         widget_gotoyx (w, 0, MENU (g_list_nth_data (menubar->menu, menubar->selected))->start_x);
menu              286 lib/widget/menu.c         menubar->selected = g_list_length (menubar->menu) - 1;
menu              298 lib/widget/menu.c     menubar->selected = (menubar->selected + 1) % g_list_length (menubar->menu);
menu              341 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              342 lib/widget/menu.c     const menu_entry_t *entry = MENUENTRY (g_list_nth_data (menu->entries, menu->selected));
menu              360 lib/widget/menu.c     menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              361 lib/widget/menu.c     const unsigned int len = g_list_length (menu->entries);
menu              364 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menu              368 lib/widget/menu.c         menu->selected = (menu->selected + 1) % len;
menu              369 lib/widget/menu.c         entry = MENUENTRY (g_list_nth_data (menu->entries, menu->selected));
menu              373 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menu              381 lib/widget/menu.c     menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              382 lib/widget/menu.c     const unsigned int len = g_list_length (menu->entries);
menu              385 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menu              389 lib/widget/menu.c         if (menu->selected == 0)
menu              390 lib/widget/menu.c             menu->selected = len - 1;
menu              392 lib/widget/menu.c             menu->selected--;
menu              393 lib/widget/menu.c         entry = MENUENTRY (g_list_nth_data (menu->entries, menu->selected));
menu              397 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menu              407 lib/widget/menu.c         menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              409 lib/widget/menu.c         if (menu->selected == 0)
menu              412 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menu              414 lib/widget/menu.c         menu->selected = 0;
menu              420 lib/widget/menu.c             entry = MENUENTRY (g_list_nth_data (menu->entries, menu->selected));
menu              423 lib/widget/menu.c                 menu->selected++;
menu              428 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menu              444 lib/widget/menu.c         menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              445 lib/widget/menu.c         const unsigned int len = g_list_length (menu->entries);
menu              448 lib/widget/menu.c         if (menu->selected == len - 1)
menu              451 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menu              453 lib/widget/menu.c         menu->selected = len;
menu              457 lib/widget/menu.c             menu->selected--;
menu              458 lib/widget/menu.c             entry = MENUENTRY (g_list_nth_data (menu->entries, menu->selected));
menu              462 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menu              466 lib/widget/menu.c         menubar->selected = g_list_length (menubar->menu) - 1;
menu              478 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menu              480 lib/widget/menu.c         menu_t *menu = MENU (i->data);
menu              482 lib/widget/menu.c         if (menu->text.hotkey != NULL && hotkey == g_ascii_tolower (menu->text.hotkey[0]))
menu              484 lib/widget/menu.c             menubar_drop (menubar, g_list_position (menubar->menu, i));
menu              497 lib/widget/menu.c     menu_t *menu;
menu              500 lib/widget/menu.c     menu = g_list_nth_data (menubar->menu, menubar->selected);
menu              502 lib/widget/menu.c     for (i = menu->entries; i != NULL; i = g_list_next (i))
menu              509 lib/widget/menu.c             menu->selected = g_list_position (menu->entries, i);
menu              533 lib/widget/menu.c                     MENU (g_list_nth_data (menubar->menu, menubar->selected))->help_node;
menu              630 lib/widget/menu.c     g_clear_list (&menubar->menu, (GDestroyNotify) destroy_menu);
menu              694 lib/widget/menu.c     GList *menu;
menu              696 lib/widget/menu.c     for (i = 0, menu = menubar->menu;
menu              697 lib/widget/menu.c          menu != NULL && x >= MENU (menu->data)->start_x; i++, menu = g_list_next (menu))
menu              713 lib/widget/menu.c     menu_t *menu;
menu              719 lib/widget/menu.c     menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              720 lib/widget/menu.c     left_x = menu->start_x;
menu              721 lib/widget/menu.c     right_x = left_x + menu->max_entry_len + 3;
menu              724 lib/widget/menu.c         left_x = w->cols - (menu->max_entry_len + 3);
menu              728 lib/widget/menu.c     bottom_y = g_list_length (menu->entries) + 2;       /* skip bar and top frame */
menu              738 lib/widget/menu.c     menu_t *menu;
menu              742 lib/widget/menu.c     menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              743 lib/widget/menu.c     entry = MENUENTRY (g_list_nth_data (menu->entries, y));
menu              747 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menu              748 lib/widget/menu.c         menu->selected = y;
menu              749 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menu              903 lib/widget/menu.c     menu_t *menu;
menu              905 lib/widget/menu.c     menu = g_new (menu_t, 1);
menu              906 lib/widget/menu.c     menu->start_x = 0;
menu              907 lib/widget/menu.c     menu->text = hotkey_new (name);
menu              908 lib/widget/menu.c     menu->entries = entries;
menu              909 lib/widget/menu.c     menu->max_entry_len = 1;
menu              910 lib/widget/menu.c     menu->max_hotkey_len = 0;
menu              911 lib/widget/menu.c     menu->selected = 0;
menu              912 lib/widget/menu.c     menu->help_node = g_strdup (help_node);
menu              914 lib/widget/menu.c     return menu;
menu              920 lib/widget/menu.c menu_set_name (menu_t * menu, const char *name)
menu              922 lib/widget/menu.c     hotkey_free (menu->text);
menu              923 lib/widget/menu.c     menu->text = hotkey_new (name);
menu              929 lib/widget/menu.c destroy_menu (menu_t * menu)
menu              931 lib/widget/menu.c     hotkey_free (menu->text);
menu              932 lib/widget/menu.c     g_list_free_full (menu->entries, (GDestroyNotify) menu_entry_free);
menu              933 lib/widget/menu.c     g_free (menu->help_node);
menu              934 lib/widget/menu.c     g_free (menu);
menu              940 lib/widget/menu.c menubar_new (GList * menu, gboolean visible)
menu              954 lib/widget/menu.c     menubar_set_menu (menubar, menu);
menu              962 lib/widget/menu.c menubar_set_menu (WMenuBar * menubar, GList * menu)
menu              968 lib/widget/menu.c     menubar->menu = menu;
menu              977 lib/widget/menu.c menubar_add_menu (WMenuBar * menubar, menu_t * menu)
menu              979 lib/widget/menu.c     if (menu != NULL)
menu              981 lib/widget/menu.c         menu_arrange (menu, DIALOG (WIDGET (menubar)->owner)->get_shortcut);
menu              982 lib/widget/menu.c         menubar->menu = g_list_append (menubar->menu, menu);
menu             1001 lib/widget/menu.c     if (menubar->menu == NULL)
menu             1007 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menu             1009 lib/widget/menu.c         menu_t *menu = MENU (i->data);
menu             1012 lib/widget/menu.c         menu->start_x = hotkey_width (menu->text) + 2;
menu             1013 lib/widget/menu.c         gap -= menu->start_x;
menu             1016 lib/widget/menu.c     if (g_list_next (menubar->menu) == NULL)
menu             1019 lib/widget/menu.c         gap /= (g_list_length (menubar->menu) - 1);
menu             1030 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menu             1032 lib/widget/menu.c         menu_t *menu = MENU (i->data);
menu             1033 lib/widget/menu.c         int len = menu->start_x;
menu             1035 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              396 src/filemanager/midnight.c         selected = g_list_length (the_menubar->menu) - 1;
menu             1361 src/setup.c            LOAD_KEYMAP (MENU, menu);
menu             1391 src/setup.c        SET_MAP (menu);
menu             1426 src/setup.c        FREE_KEYMAP (menu);
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);