menu               85 lib/widget/menu.c menu_arrange (menu_t *menu, dlg_shortcut_str get_shortcut)
menu               87 lib/widget/menu.c     if (menu != NULL)
menu               92 lib/widget/menu.c         menu->max_entry_len = 1;
menu               93 lib/widget/menu.c         menu->max_hotkey_len = 1;
menu               95 lib/widget/menu.c         for (i = menu->entries; i != NULL; i = g_list_next (i))
menu              104 lib/widget/menu.c                 menu->max_hotkey_len = MAX (menu->max_hotkey_len, len);
menu              117 lib/widget/menu.c         menu->max_entry_len = menu->max_hotkey_len + max_shortcut_len;
menu              127 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->current));
menu              128 lib/widget/menu.c     const menu_entry_t *entry = MENUENTRY (g_list_nth_data (menu->entries, idx));
menu              130 lib/widget/menu.c     int x = menu->start_x;
menu              132 lib/widget/menu.c     if (x + menu->max_entry_len + 4 > (gsize) w->cols)
menu              133 lib/widget/menu.c         x = w->cols - menu->max_entry_len - 4;
menu              142 lib/widget/menu.c         tty_draw_hline (w->y + y, w->x + x, ACS_HLINE, menu->max_entry_len + 3);
menu              143 lib/widget/menu.c         widget_gotoyx (menubar, y, x + menu->max_entry_len + 3);
menu              155 lib/widget/menu.c         tty_draw_hline (yt, xt, ' ', menu->max_entry_len + 2);  /* clear line */
menu              170 lib/widget/menu.c             widget_gotoyx (menubar, y, x + menu->max_hotkey_len + 3);
menu              185 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->current));
menu              186 lib/widget/menu.c     const unsigned int count = g_list_length (menu->entries);
menu              187 lib/widget/menu.c     int column = menu->start_x - 1;
menu              190 lib/widget/menu.c     if (column + menu->max_entry_len + 5 > (gsize) w->cols)
menu              191 lib/widget/menu.c         column = w->cols - menu->max_entry_len - 5;
menu              194 lib/widget/menu.c         tty_draw_box_shadow (w->y + 1, w->x + column, count + 2, menu->max_entry_len + 5,
menu              198 lib/widget/menu.c     tty_draw_box (w->y + 1, w->x + column, count + 2, menu->max_entry_len + 5, FALSE);
menu              201 lib/widget/menu.c         menubar_paint_idx (menubar, i, i == menu->current ? MENU_SELECTED_COLOR : MENU_ENTRY_COLOR);
menu              231 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menu              233 lib/widget/menu.c         menu_t *menu = MENU (i->data);
menu              234 lib/widget/menu.c         gboolean is_selected = (menubar->current == (gsize) g_list_position (menubar->menu, i));
menu              237 lib/widget/menu.c         widget_gotoyx (menubar, 0, menu->start_x);
menu              240 lib/widget/menu.c         tty_print_string (menu->text.start);
menu              242 lib/widget/menu.c         if (menu->text.hotkey != NULL)
menu              245 lib/widget/menu.c             tty_print_string (menu->text.hotkey);
menu              249 lib/widget/menu.c         if (menu->text.end != NULL)
menu              250 lib/widget/menu.c             tty_print_string (menu->text.end);
menu              259 lib/widget/menu.c                        MENU (g_list_nth_data (menubar->menu, menubar->current))->start_x);
menu              294 lib/widget/menu.c         menubar->current = g_list_length (menubar->menu) - 1;
menu              306 lib/widget/menu.c     menubar->current = (menubar->current + 1) % g_list_length (menubar->menu);
menu              354 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->current));
menu              355 lib/widget/menu.c     const menu_entry_t *entry = MENUENTRY (g_list_nth_data (menu->entries, menu->current));
menu              373 lib/widget/menu.c     menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->current));
menu              374 lib/widget/menu.c     const unsigned int len = g_list_length (menu->entries);
menu              377 lib/widget/menu.c     menubar_paint_idx (menubar, menu->current, MENU_ENTRY_COLOR);
menu              381 lib/widget/menu.c         menu->current = (menu->current + 1) % len;
menu              382 lib/widget/menu.c         entry = MENUENTRY (g_list_nth_data (menu->entries, menu->current));
menu              386 lib/widget/menu.c     menubar_paint_idx (menubar, menu->current, MENU_SELECTED_COLOR);
menu              394 lib/widget/menu.c     menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->current));
menu              395 lib/widget/menu.c     const unsigned int len = g_list_length (menu->entries);
menu              398 lib/widget/menu.c     menubar_paint_idx (menubar, menu->current, MENU_ENTRY_COLOR);
menu              402 lib/widget/menu.c         if (menu->current == 0)
menu              403 lib/widget/menu.c             menu->current = len - 1;
menu              405 lib/widget/menu.c             menu->current--;
menu              406 lib/widget/menu.c         entry = MENUENTRY (g_list_nth_data (menu->entries, menu->current));
menu              410 lib/widget/menu.c     menubar_paint_idx (menubar, menu->current, MENU_SELECTED_COLOR);
menu              420 lib/widget/menu.c         menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->current));
menu              422 lib/widget/menu.c         if (menu->current == 0)
menu              425 lib/widget/menu.c         menubar_paint_idx (menubar, menu->current, MENU_ENTRY_COLOR);
menu              427 lib/widget/menu.c         menu->current = 0;
menu              433 lib/widget/menu.c             entry = MENUENTRY (g_list_nth_data (menu->entries, menu->current));
menu              436 lib/widget/menu.c                 menu->current++;
menu              441 lib/widget/menu.c         menubar_paint_idx (menubar, menu->current, MENU_SELECTED_COLOR);
menu              457 lib/widget/menu.c         menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->current));
menu              458 lib/widget/menu.c         const unsigned int len = g_list_length (menu->entries);
menu              461 lib/widget/menu.c         if (menu->current == len - 1)
menu              464 lib/widget/menu.c         menubar_paint_idx (menubar, menu->current, MENU_ENTRY_COLOR);
menu              466 lib/widget/menu.c         menu->current = len;
menu              470 lib/widget/menu.c             menu->current--;
menu              471 lib/widget/menu.c             entry = MENUENTRY (g_list_nth_data (menu->entries, menu->current));
menu              475 lib/widget/menu.c         menubar_paint_idx (menubar, menu->current, MENU_SELECTED_COLOR);
menu              479 lib/widget/menu.c         menubar->current = g_list_length (menubar->menu) - 1;
menu              491 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menu              493 lib/widget/menu.c         menu_t *menu = MENU (i->data);
menu              495 lib/widget/menu.c         if (menu->text.hotkey != NULL && hotkey == g_ascii_tolower (menu->text.hotkey[0]))
menu              497 lib/widget/menu.c             menubar_drop (menubar, g_list_position (menubar->menu, i));
menu              510 lib/widget/menu.c     menu_t *menu;
menu              513 lib/widget/menu.c     menu = g_list_nth_data (menubar->menu, menubar->current);
menu              515 lib/widget/menu.c     for (i = menu->entries; i != NULL; i = g_list_next (i))
menu              522 lib/widget/menu.c             menu->current = g_list_position (menu->entries, i);
menu              541 lib/widget/menu.c         event_data.node = MENU (g_list_nth_data (menubar->menu, menubar->current))->help_node;
menu              650 lib/widget/menu.c     g_clear_list (&menubar->menu, (GDestroyNotify) menu_free);
menu              714 lib/widget/menu.c     GList *menu;
menu              716 lib/widget/menu.c     for (i = 0, menu = menubar->menu;
menu              717 lib/widget/menu.c          menu != NULL && x >= MENU (menu->data)->start_x; i++, menu = g_list_next (menu))
menu              733 lib/widget/menu.c     menu_t *menu;
menu              739 lib/widget/menu.c     menu = MENU (g_list_nth_data (menubar->menu, menubar->current));
menu              740 lib/widget/menu.c     left_x = menu->start_x;
menu              741 lib/widget/menu.c     right_x = left_x + menu->max_entry_len + 3;
menu              744 lib/widget/menu.c         left_x = w->cols - (menu->max_entry_len + 3);
menu              748 lib/widget/menu.c     bottom_y = g_list_length (menu->entries) + 2;       /* skip bar and top frame */
menu              758 lib/widget/menu.c     menu_t *menu;
menu              762 lib/widget/menu.c     menu = MENU (g_list_nth_data (menubar->menu, menubar->current));
menu              763 lib/widget/menu.c     entry = MENUENTRY (g_list_nth_data (menu->entries, y));
menu              767 lib/widget/menu.c         menubar_paint_idx (menubar, menu->current, MENU_ENTRY_COLOR);
menu              768 lib/widget/menu.c         menu->current = y;
menu              769 lib/widget/menu.c         menubar_paint_idx (menubar, menu->current, MENU_SELECTED_COLOR);
menu              923 lib/widget/menu.c     menu_t *menu;
menu              925 lib/widget/menu.c     menu = g_new (menu_t, 1);
menu              926 lib/widget/menu.c     menu->start_x = 0;
menu              927 lib/widget/menu.c     menu->text = hotkey_new (name);
menu              928 lib/widget/menu.c     menu->entries = entries;
menu              929 lib/widget/menu.c     menu->max_entry_len = 1;
menu              930 lib/widget/menu.c     menu->max_hotkey_len = 0;
menu              931 lib/widget/menu.c     menu->current = 0;
menu              932 lib/widget/menu.c     menu->help_node = g_strdup (help_node);
menu              934 lib/widget/menu.c     return menu;
menu              940 lib/widget/menu.c menu_set_name (menu_t *menu, const char *name)
menu              942 lib/widget/menu.c     hotkey_free (menu->text);
menu              943 lib/widget/menu.c     menu->text = hotkey_new (name);
menu              949 lib/widget/menu.c menu_free (menu_t *menu)
menu              951 lib/widget/menu.c     hotkey_free (menu->text);
menu              952 lib/widget/menu.c     g_list_free_full (menu->entries, (GDestroyNotify) menu_entry_free);
menu              953 lib/widget/menu.c     g_free (menu->help_node);
menu              954 lib/widget/menu.c     g_free (menu);
menu              960 lib/widget/menu.c menubar_new (GList *menu)
menu              972 lib/widget/menu.c     menubar_set_menu (menubar, menu);
menu              980 lib/widget/menu.c menubar_set_menu (WMenuBar *menubar, GList *menu)
menu              986 lib/widget/menu.c     menubar->menu = menu;
menu              995 lib/widget/menu.c menubar_add_menu (WMenuBar *menubar, menu_t *menu)
menu              997 lib/widget/menu.c     if (menu != NULL)
menu              999 lib/widget/menu.c         menu_arrange (menu, DIALOG (WIDGET (menubar)->owner)->get_shortcut);
menu             1000 lib/widget/menu.c         menubar->menu = g_list_append (menubar->menu, menu);
menu             1019 lib/widget/menu.c     if (menubar->menu == NULL)
menu             1025 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menu             1027 lib/widget/menu.c         menu_t *menu = MENU (i->data);
menu             1030 lib/widget/menu.c         menu->start_x = hotkey_width (menu->text) + 2;
menu             1031 lib/widget/menu.c         gap -= menu->start_x;
menu             1034 lib/widget/menu.c     if (g_list_next (menubar->menu) == NULL)
menu             1037 lib/widget/menu.c         gap /= (g_list_length (menubar->menu) - 1);
menu             1048 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menu             1050 lib/widget/menu.c         menu_t *menu = MENU (i->data);
menu             1051 lib/widget/menu.c         int len = menu->start_x;
menu             1053 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 menu_free (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              384 src/filemanager/filemanager.c         selected = g_list_length (the_menubar->menu) - 1;
menu              898 src/keymap.c           LOAD_KEYMAP (MENU, menu);
menu              928 src/keymap.c       SET_MAP (menu);
menu              963 src/keymap.c       FREE_KEYMAP (menu);
menu               79 src/usermenu.c static char *menu = NULL;
menu              923 src/usermenu.c         if (menu != NULL)
menu              925 src/usermenu.c             result = quote_func (menu, FALSE);
menu             1009 src/usermenu.c     menu = g_strdup (menu_file != NULL ? menu_file : edit_widget != NULL ?
menu             1012 src/usermenu.c     if (!exist_file (menu) || !menu_file_own (menu))
menu             1016 src/usermenu.c             message (D_ERROR, MSG_ERROR, _("Cannot open file %s\n%s"), menu,
menu             1018 src/usermenu.c             MC_PTR_FREE (menu);
menu             1022 src/usermenu.c         g_free (menu);
menu             1023 src/usermenu.c         menu = mc_config_get_full_path (edit_widget != NULL ? EDIT_HOME_MENU : MC_USERMENU_FILE);
menu             1024 src/usermenu.c         if (!exist_file (menu))
menu             1030 src/usermenu.c             g_free (menu);
menu             1031 src/usermenu.c             menu = mc_build_filename (mc_config_get_home_dir (), global_menu, (char *) NULL);
menu             1032 src/usermenu.c             if (!exist_file (menu))
menu             1034 src/usermenu.c                 g_free (menu);
menu             1035 src/usermenu.c                 menu = mc_build_filename (mc_global.sysconfig_dir, global_menu, (char *) NULL);
menu             1036 src/usermenu.c                 if (!exist_file (menu))
menu             1038 src/usermenu.c                     g_free (menu);
menu             1039 src/usermenu.c                     menu = mc_build_filename (mc_global.share_data_dir, global_menu, (char *) NULL);
menu             1045 src/usermenu.c     if (!g_file_get_contents (menu, &data, NULL, NULL))
menu             1047 src/usermenu.c         message (D_ERROR, MSG_ERROR, _("Cannot open file %s\n%s"), menu, unix_error_string (errno));
menu             1048 src/usermenu.c         MC_PTR_FREE (menu);
menu             1136 src/usermenu.c         message (D_ERROR, MSG_ERROR, _("No suitable entries found in %s"), menu);
menu             1176 src/usermenu.c     MC_PTR_FREE (menu);