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 (menubar, 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 (menubar, 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              229 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menu              231 lib/widget/menu.c         menu_t *menu = MENU (i->data);
menu              232 lib/widget/menu.c         gboolean is_selected = (menubar->selected == (gsize) g_list_position (menubar->menu, i));
menu              235 lib/widget/menu.c         widget_gotoyx (menubar, 0, menu->start_x);
menu              238 lib/widget/menu.c         tty_print_string (menu->text.start);
menu              240 lib/widget/menu.c         if (menu->text.hotkey != NULL)
menu              243 lib/widget/menu.c             tty_print_string (menu->text.hotkey);
menu              247 lib/widget/menu.c         if (menu->text.end != NULL)
menu              248 lib/widget/menu.c             tty_print_string (menu->text.end);
menu              257 lib/widget/menu.c                        MENU (g_list_nth_data (menubar->menu, menubar->selected))->start_x);
menu              292 lib/widget/menu.c         menubar->selected = g_list_length (menubar->menu) - 1;
menu              304 lib/widget/menu.c     menubar->selected = (menubar->selected + 1) % g_list_length (menubar->menu);
menu              352 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              353 lib/widget/menu.c     const menu_entry_t *entry = MENUENTRY (g_list_nth_data (menu->entries, menu->selected));
menu              371 lib/widget/menu.c     menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              372 lib/widget/menu.c     const unsigned int len = g_list_length (menu->entries);
menu              375 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menu              379 lib/widget/menu.c         menu->selected = (menu->selected + 1) % len;
menu              380 lib/widget/menu.c         entry = MENUENTRY (g_list_nth_data (menu->entries, menu->selected));
menu              384 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menu              392 lib/widget/menu.c     menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              393 lib/widget/menu.c     const unsigned int len = g_list_length (menu->entries);
menu              396 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menu              400 lib/widget/menu.c         if (menu->selected == 0)
menu              401 lib/widget/menu.c             menu->selected = len - 1;
menu              403 lib/widget/menu.c             menu->selected--;
menu              404 lib/widget/menu.c         entry = MENUENTRY (g_list_nth_data (menu->entries, menu->selected));
menu              408 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menu              418 lib/widget/menu.c         menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              420 lib/widget/menu.c         if (menu->selected == 0)
menu              423 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menu              425 lib/widget/menu.c         menu->selected = 0;
menu              431 lib/widget/menu.c             entry = MENUENTRY (g_list_nth_data (menu->entries, menu->selected));
menu              434 lib/widget/menu.c                 menu->selected++;
menu              439 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menu              455 lib/widget/menu.c         menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              456 lib/widget/menu.c         const unsigned int len = g_list_length (menu->entries);
menu              459 lib/widget/menu.c         if (menu->selected == len - 1)
menu              462 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menu              464 lib/widget/menu.c         menu->selected = len;
menu              468 lib/widget/menu.c             menu->selected--;
menu              469 lib/widget/menu.c             entry = MENUENTRY (g_list_nth_data (menu->entries, menu->selected));
menu              473 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menu              477 lib/widget/menu.c         menubar->selected = g_list_length (menubar->menu) - 1;
menu              489 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menu              491 lib/widget/menu.c         menu_t *menu = MENU (i->data);
menu              493 lib/widget/menu.c         if (menu->text.hotkey != NULL && hotkey == g_ascii_tolower (menu->text.hotkey[0]))
menu              495 lib/widget/menu.c             menubar_drop (menubar, g_list_position (menubar->menu, i));
menu              508 lib/widget/menu.c     menu_t *menu;
menu              511 lib/widget/menu.c     menu = g_list_nth_data (menubar->menu, menubar->selected);
menu              513 lib/widget/menu.c     for (i = menu->entries; i != NULL; i = g_list_next (i))
menu              520 lib/widget/menu.c             menu->selected = g_list_position (menu->entries, i);
menu              544 lib/widget/menu.c                     MENU (g_list_nth_data (menubar->menu, menubar->selected))->help_node;
menu              641 lib/widget/menu.c     g_clear_list (&menubar->menu, (GDestroyNotify) destroy_menu);
menu              705 lib/widget/menu.c     GList *menu;
menu              707 lib/widget/menu.c     for (i = 0, menu = menubar->menu;
menu              708 lib/widget/menu.c          menu != NULL && x >= MENU (menu->data)->start_x; i++, menu = g_list_next (menu))
menu              724 lib/widget/menu.c     menu_t *menu;
menu              730 lib/widget/menu.c     menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              731 lib/widget/menu.c     left_x = menu->start_x;
menu              732 lib/widget/menu.c     right_x = left_x + menu->max_entry_len + 3;
menu              735 lib/widget/menu.c         left_x = w->cols - (menu->max_entry_len + 3);
menu              739 lib/widget/menu.c     bottom_y = g_list_length (menu->entries) + 2;       /* skip bar and top frame */
menu              749 lib/widget/menu.c     menu_t *menu;
menu              753 lib/widget/menu.c     menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menu              754 lib/widget/menu.c     entry = MENUENTRY (g_list_nth_data (menu->entries, y));
menu              758 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menu              759 lib/widget/menu.c         menu->selected = y;
menu              760 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menu              914 lib/widget/menu.c     menu_t *menu;
menu              916 lib/widget/menu.c     menu = g_new (menu_t, 1);
menu              917 lib/widget/menu.c     menu->start_x = 0;
menu              918 lib/widget/menu.c     menu->text = hotkey_new (name);
menu              919 lib/widget/menu.c     menu->entries = entries;
menu              920 lib/widget/menu.c     menu->max_entry_len = 1;
menu              921 lib/widget/menu.c     menu->max_hotkey_len = 0;
menu              922 lib/widget/menu.c     menu->selected = 0;
menu              923 lib/widget/menu.c     menu->help_node = g_strdup (help_node);
menu              925 lib/widget/menu.c     return menu;
menu              931 lib/widget/menu.c menu_set_name (menu_t * menu, const char *name)
menu              933 lib/widget/menu.c     hotkey_free (menu->text);
menu              934 lib/widget/menu.c     menu->text = hotkey_new (name);
menu              940 lib/widget/menu.c destroy_menu (menu_t * menu)
menu              942 lib/widget/menu.c     hotkey_free (menu->text);
menu              943 lib/widget/menu.c     g_list_free_full (menu->entries, (GDestroyNotify) menu_entry_free);
menu              944 lib/widget/menu.c     g_free (menu->help_node);
menu              945 lib/widget/menu.c     g_free (menu);
menu              951 lib/widget/menu.c menubar_new (GList * menu)
menu              965 lib/widget/menu.c     menubar_set_menu (menubar, menu);
menu              973 lib/widget/menu.c menubar_set_menu (WMenuBar * menubar, GList * menu)
menu              979 lib/widget/menu.c     menubar->menu = menu;
menu              988 lib/widget/menu.c menubar_add_menu (WMenuBar * menubar, menu_t * menu)
menu              990 lib/widget/menu.c     if (menu != NULL)
menu              992 lib/widget/menu.c         menu_arrange (menu, DIALOG (WIDGET (menubar)->owner)->get_shortcut);
menu              993 lib/widget/menu.c         menubar->menu = g_list_append (menubar->menu, menu);
menu             1012 lib/widget/menu.c     if (menubar->menu == NULL)
menu             1018 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menu             1020 lib/widget/menu.c         menu_t *menu = MENU (i->data);
menu             1023 lib/widget/menu.c         menu->start_x = hotkey_width (menu->text) + 2;
menu             1024 lib/widget/menu.c         gap -= menu->start_x;
menu             1027 lib/widget/menu.c     if (g_list_next (menubar->menu) == NULL)
menu             1030 lib/widget/menu.c         gap /= (g_list_length (menubar->menu) - 1);
menu             1041 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menu             1043 lib/widget/menu.c         menu_t *menu = MENU (i->data);
menu             1044 lib/widget/menu.c         int len = menu->start_x;
menu             1046 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);