menubar           122 lib/widget/menu.c menubar_paint_idx (WMenuBar * menubar, unsigned int idx, int color)
menubar           124 lib/widget/menu.c     Widget *w = WIDGET (menubar);
menubar           125 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           180 lib/widget/menu.c menubar_draw_drop (WMenuBar * menubar)
menubar           182 lib/widget/menu.c     Widget *w = WIDGET (menubar);
menubar           183 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           195 lib/widget/menu.c         menubar_paint_idx (menubar, i,
menubar           202 lib/widget/menu.c menubar_set_color (WMenuBar * menubar, gboolean current, gboolean hotkey)
menubar           204 lib/widget/menu.c     if (!widget_get_state (WIDGET (menubar), WST_FOCUSED))
menubar           215 lib/widget/menu.c menubar_draw (WMenuBar * menubar)
menubar           217 lib/widget/menu.c     Widget *w = WIDGET (menubar);
menubar           225 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menubar           228 lib/widget/menu.c         gboolean is_selected = (menubar->selected == (gsize) g_list_position (menubar->menu, i));
menubar           230 lib/widget/menu.c         menubar_set_color (menubar, is_selected, FALSE);
menubar           238 lib/widget/menu.c             menubar_set_color (menubar, is_selected, TRUE);
menubar           240 lib/widget/menu.c             menubar_set_color (menubar, is_selected, FALSE);
menubar           249 lib/widget/menu.c     if (menubar->is_dropped)
menubar           250 lib/widget/menu.c         menubar_draw_drop (menubar);
menubar           252 lib/widget/menu.c         widget_move (w, 0, MENU (g_list_nth_data (menubar->menu, menubar->selected))->start_x);
menubar           258 lib/widget/menu.c menubar_remove (WMenuBar * menubar)
menubar           262 lib/widget/menu.c     if (!menubar->is_dropped)
menubar           269 lib/widget/menu.c     h = WIDGET (menubar)->owner;
menubar           270 lib/widget/menu.c     h->current = g_list_find (h->widgets, dlg_find_by_id (h, menubar->previous_widget));
menubar           272 lib/widget/menu.c     menubar->is_dropped = FALSE;
menubar           274 lib/widget/menu.c     menubar->is_dropped = TRUE;
menubar           277 lib/widget/menu.c     h->current = g_list_find (h->widgets, menubar);
menubar           283 lib/widget/menu.c menubar_left (WMenuBar * menubar)
menubar           285 lib/widget/menu.c     menubar_remove (menubar);
menubar           286 lib/widget/menu.c     if (menubar->selected == 0)
menubar           287 lib/widget/menu.c         menubar->selected = g_list_length (menubar->menu) - 1;
menubar           289 lib/widget/menu.c         menubar->selected--;
menubar           290 lib/widget/menu.c     menubar_draw (menubar);
menubar           296 lib/widget/menu.c menubar_right (WMenuBar * menubar)
menubar           298 lib/widget/menu.c     menubar_remove (menubar);
menubar           299 lib/widget/menu.c     menubar->selected = (menubar->selected + 1) % g_list_length (menubar->menu);
menubar           300 lib/widget/menu.c     menubar_draw (menubar);
menubar           306 lib/widget/menu.c menubar_finish (WMenuBar * menubar)
menubar           308 lib/widget/menu.c     Widget *w = WIDGET (menubar);
menubar           311 lib/widget/menu.c     menubar->is_dropped = FALSE;
menubar           320 lib/widget/menu.c     dlg_select_by_id (w->owner, menubar->previous_widget);
menubar           327 lib/widget/menu.c menubar_drop (WMenuBar * menubar, unsigned int selected)
menubar           329 lib/widget/menu.c     menubar->is_dropped = TRUE;
menubar           330 lib/widget/menu.c     menubar->selected = selected;
menubar           331 lib/widget/menu.c     menubar_draw (menubar);
menubar           337 lib/widget/menu.c menubar_execute (WMenuBar * menubar)
menubar           339 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           344 lib/widget/menu.c         Widget *w = WIDGET (menubar);
menubar           346 lib/widget/menu.c         mc_global.widget.is_right = (menubar->selected != 0);
menubar           347 lib/widget/menu.c         menubar_finish (menubar);
menubar           356 lib/widget/menu.c menubar_down (WMenuBar * menubar)
menubar           358 lib/widget/menu.c     menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           362 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menubar           371 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menubar           377 lib/widget/menu.c menubar_up (WMenuBar * menubar)
menubar           379 lib/widget/menu.c     menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           383 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menubar           395 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menubar           401 lib/widget/menu.c menubar_first (WMenuBar * menubar)
menubar           403 lib/widget/menu.c     if (menubar->is_dropped)
menubar           405 lib/widget/menu.c         menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           410 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menubar           426 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menubar           430 lib/widget/menu.c         menubar->selected = 0;
menubar           431 lib/widget/menu.c         menubar_draw (menubar);
menubar           438 lib/widget/menu.c menubar_last (WMenuBar * menubar)
menubar           440 lib/widget/menu.c     if (menubar->is_dropped)
menubar           442 lib/widget/menu.c         menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           449 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menubar           460 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menubar           464 lib/widget/menu.c         menubar->selected = g_list_length (menubar->menu) - 1;
menubar           465 lib/widget/menu.c         menubar_draw (menubar);
menubar           472 lib/widget/menu.c menubar_try_drop_menu (WMenuBar * menubar, int hotkey)
menubar           476 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menubar           482 lib/widget/menu.c             menubar_drop (menubar, g_list_position (menubar->menu, i));
menubar           493 lib/widget/menu.c menubar_try_exec_menu (WMenuBar * menubar, int hotkey)
menubar           498 lib/widget/menu.c     menu = g_list_nth_data (menubar->menu, menubar->selected);
menubar           508 lib/widget/menu.c             menubar_execute (menubar);
menubar           519 lib/widget/menu.c menubar_execute_cmd (WMenuBar * menubar, unsigned long command)
menubar           529 lib/widget/menu.c             if (menubar->is_dropped)
menubar           531 lib/widget/menu.c                     MENU (g_list_nth_data (menubar->menu, menubar->selected))->help_node;
menubar           536 lib/widget/menu.c             menubar_draw (menubar);
menubar           541 lib/widget/menu.c         menubar_left (menubar);
menubar           544 lib/widget/menu.c         menubar_right (menubar);
menubar           547 lib/widget/menu.c         if (menubar->is_dropped)
menubar           548 lib/widget/menu.c             menubar_up (menubar);
menubar           551 lib/widget/menu.c         if (menubar->is_dropped)
menubar           552 lib/widget/menu.c             menubar_down (menubar);
menubar           554 lib/widget/menu.c             menubar_drop (menubar, menubar->selected);
menubar           557 lib/widget/menu.c         menubar_first (menubar);
menubar           560 lib/widget/menu.c         menubar_last (menubar);
menubar           564 lib/widget/menu.c         if (menubar->is_dropped)
menubar           565 lib/widget/menu.c             menubar_execute (menubar);
menubar           567 lib/widget/menu.c             menubar_drop (menubar, menubar->selected);
menubar           570 lib/widget/menu.c         menubar_finish (menubar);
menubar           584 lib/widget/menu.c menubar_handle_key (WMenuBar * menubar, int key)
menubar           592 lib/widget/menu.c         ret = menubar_execute_cmd (menubar, cmd);
menubar           596 lib/widget/menu.c         if (menubar->is_dropped)
menubar           597 lib/widget/menu.c             ret = menubar_try_exec_menu (menubar, key);
menubar           599 lib/widget/menu.c             ret = menubar_try_drop_menu (menubar, key);
menubar           608 lib/widget/menu.c menubar_refresh (WMenuBar * menubar)
menubar           610 lib/widget/menu.c     Widget *w = WIDGET (menubar);
menubar           626 lib/widget/menu.c menubar_free_menu (WMenuBar * menubar)
menubar           628 lib/widget/menu.c     if (menubar->menu != NULL)
menubar           629 lib/widget/menu.c         g_list_free_full (menubar->menu, (GDestroyNotify) destroy_menu);
menubar           637 lib/widget/menu.c     WMenuBar *menubar = MENUBAR (w);
menubar           643 lib/widget/menu.c         if (menubar_refresh (menubar))
menubar           645 lib/widget/menu.c             menubar_draw (menubar);
menubar           658 lib/widget/menu.c             menubar_handle_key (menubar, parm);
menubar           668 lib/widget/menu.c         if (menubar->is_visible || menubar_refresh (menubar))
menubar           669 lib/widget/menu.c             menubar_draw (menubar);
menubar           674 lib/widget/menu.c         menubar_refresh (menubar);
menubar           678 lib/widget/menu.c         menubar_free_menu (menubar);
menubar           689 lib/widget/menu.c menubar_get_menu_by_x_coord (const WMenuBar * menubar, int x)
menubar           694 lib/widget/menu.c     for (i = 0, menu = menubar->menu;
menubar           708 lib/widget/menu.c menubar_mouse_on_menu (const WMenuBar * menubar, int y, int x)
menubar           710 lib/widget/menu.c     Widget *w = WIDGET (menubar);
menubar           714 lib/widget/menu.c     if (!menubar->is_dropped)
menubar           717 lib/widget/menu.c     menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           734 lib/widget/menu.c menubar_change_selected_item (WMenuBar * menubar, int y)
menubar           740 lib/widget/menu.c     menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           745 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menubar           747 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menubar           758 lib/widget/menu.c     WMenuBar *menubar = MENUBAR (w);
menubar           761 lib/widget/menu.c     mouse_on_drop = menubar_mouse_on_menu (menubar, event->y, event->x);
menubar           773 lib/widget/menu.c             selected = menubar_get_menu_by_x_coord (menubar, event->x);
menubar           774 lib/widget/menu.c             menubar_activate (menubar, TRUE, selected);
menubar           775 lib/widget/menu.c             menubar_remove (menubar);   /* if already shown */
menubar           776 lib/widget/menu.c             menubar_drop (menubar, selected);
menubar           779 lib/widget/menu.c             menubar_change_selected_item (menubar, event->y);
menubar           783 lib/widget/menu.c             menubar_finish (menubar);
menubar           803 lib/widget/menu.c             menubar_execute (menubar);
menubar           810 lib/widget/menu.c         if ((event->buttons & GPM_B_MIDDLE) != 0 && event->y > 0 && menubar->is_dropped)
menubar           813 lib/widget/menu.c             menubar_execute (menubar);
menubar           816 lib/widget/menu.c             menubar_execute (menubar);
menubar           819 lib/widget/menu.c             menubar_finish (menubar);
menubar           825 lib/widget/menu.c             menubar_remove (menubar);
menubar           826 lib/widget/menu.c             menubar_drop (menubar, menubar_get_menu_by_x_coord (menubar, event->x));
menubar           829 lib/widget/menu.c             menubar_change_selected_item (menubar, event->y);
menubar           844 lib/widget/menu.c                     menubar_left (menubar);
menubar           846 lib/widget/menu.c                     menubar_right (menubar);
menubar           852 lib/widget/menu.c                     menubar_up (menubar);
menubar           854 lib/widget/menu.c                     menubar_down (menubar);
menubar           940 lib/widget/menu.c     WMenuBar *menubar;
menubar           943 lib/widget/menu.c     menubar = g_new0 (WMenuBar, 1);
menubar           944 lib/widget/menu.c     w = WIDGET (menubar);
menubar           950 lib/widget/menu.c     menubar->is_visible = visible;
menubar           951 lib/widget/menu.c     menubar_set_menu (menubar, menu);
menubar           953 lib/widget/menu.c     return menubar;
menubar           959 lib/widget/menu.c menubar_set_menu (WMenuBar * menubar, GList * menu)
menubar           962 lib/widget/menu.c     menubar_free_menu (menubar);
menubar           964 lib/widget/menu.c     menubar->is_dropped = FALSE;
menubar           965 lib/widget/menu.c     menubar->menu = menu;
menubar           966 lib/widget/menu.c     menubar->selected = 0;
menubar           967 lib/widget/menu.c     menubar_arrange (menubar);
menubar           968 lib/widget/menu.c     widget_set_state (WIDGET (menubar), WST_FOCUSED, FALSE);
menubar           974 lib/widget/menu.c menubar_add_menu (WMenuBar * menubar, menu_t * menu)
menubar           978 lib/widget/menu.c         menu_arrange (menu, WIDGET (menubar)->owner->get_shortcut);
menubar           979 lib/widget/menu.c         menubar->menu = g_list_append (menubar->menu, menu);
menubar           982 lib/widget/menu.c     menubar_arrange (menubar);
menubar           992 lib/widget/menu.c menubar_arrange (WMenuBar * menubar)
menubar           998 lib/widget/menu.c     if (menubar->menu == NULL)
menubar          1001 lib/widget/menu.c     gap = WIDGET (menubar)->cols - 2;
menubar          1004 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menubar          1013 lib/widget/menu.c     if (g_list_next (menubar->menu) == NULL)
menubar          1016 lib/widget/menu.c         gap /= (g_list_length (menubar->menu) - 1);
menubar          1027 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menubar          1056 lib/widget/menu.c menubar_activate (WMenuBar * menubar, gboolean dropped, int which)
menubar          1058 lib/widget/menu.c     Widget *w = WIDGET (menubar);
menubar          1065 lib/widget/menu.c         menubar->is_dropped = dropped;
menubar          1067 lib/widget/menu.c             menubar->selected = (guint) which;
menubar          1069 lib/widget/menu.c         menubar->previous_widget = dlg_get_current_widget_id (w->owner);
menubar            52 lib/widget/menu.h void menubar_set_menu (WMenuBar * menubar, GList * menu);
menubar            53 lib/widget/menu.h void menubar_add_menu (WMenuBar * menubar, menu_t * menu);
menubar            54 lib/widget/menu.h void menubar_arrange (WMenuBar * menubar);
menubar            58 lib/widget/menu.h void menubar_activate (WMenuBar * menubar, gboolean dropped, int which);
menubar            63 lib/widget/menu.h menubar_set_visible (WMenuBar * menubar, gboolean visible)
menubar            65 lib/widget/menu.h     menubar->is_visible = visible;
menubar           146 src/editor/edit-impl.h void edit_init_menu (WMenuBar * menubar);
menubar           269 src/editor/editmenu.c     WMenuBar *menubar;
menubar           271 src/editor/editmenu.c     menubar = find_menubar (h);
menubar           272 src/editor/editmenu.c     menubar_activate (menubar, drop_menus, which);
menubar           280 src/editor/editmenu.c edit_init_menu (WMenuBar * menubar)
menubar           282 src/editor/editmenu.c     menubar_add_menu (menubar,
menubar           284 src/editor/editmenu.c     menubar_add_menu (menubar,
menubar           286 src/editor/editmenu.c     menubar_add_menu (menubar,
menubar           289 src/editor/editmenu.c     menubar_add_menu (menubar,
menubar           292 src/editor/editmenu.c     menubar_add_menu (menubar,
menubar           294 src/editor/editmenu.c     menubar_add_menu (menubar,
menubar           296 src/editor/editmenu.c     menubar_add_menu (menubar,
menubar          1190 src/editor/editwidget.c     WMenuBar *menubar;
menubar          1222 src/editor/editwidget.c     menubar = menubar_new (NULL, TRUE);
menubar          1223 src/editor/editwidget.c     w = WIDGET (menubar);
menubar          1225 src/editor/editwidget.c     edit_init_menu (menubar);