menubar           121 lib/widget/menu.c menubar_paint_idx (const WMenuBar * menubar, unsigned int idx, int color)
menubar           123 lib/widget/menu.c     const Widget *w = CONST_WIDGET (menubar);
menubar           124 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           179 lib/widget/menu.c menubar_draw_drop (const WMenuBar * menubar)
menubar           181 lib/widget/menu.c     const Widget *w = CONST_WIDGET (menubar);
menubar           182 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           194 lib/widget/menu.c         menubar_paint_idx (menubar, i,
menubar           201 lib/widget/menu.c menubar_set_color (const WMenuBar * menubar, gboolean current, gboolean hotkey)
menubar           203 lib/widget/menu.c     if (!widget_get_state (CONST_WIDGET (menubar), WST_FOCUSED))
menubar           214 lib/widget/menu.c menubar_draw (const WMenuBar * menubar)
menubar           216 lib/widget/menu.c     const Widget *w = CONST_WIDGET (menubar);
menubar           224 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menubar           227 lib/widget/menu.c         gboolean is_selected = (menubar->selected == (gsize) g_list_position (menubar->menu, i));
menubar           229 lib/widget/menu.c         menubar_set_color (menubar, is_selected, FALSE);
menubar           237 lib/widget/menu.c             menubar_set_color (menubar, is_selected, TRUE);
menubar           239 lib/widget/menu.c             menubar_set_color (menubar, is_selected, FALSE);
menubar           248 lib/widget/menu.c     if (menubar->is_dropped)
menubar           249 lib/widget/menu.c         menubar_draw_drop (menubar);
menubar           251 lib/widget/menu.c         widget_gotoyx (w, 0, MENU (g_list_nth_data (menubar->menu, menubar->selected))->start_x);
menubar           257 lib/widget/menu.c menubar_remove (WMenuBar * menubar)
menubar           261 lib/widget/menu.c     if (!menubar->is_dropped)
menubar           268 lib/widget/menu.c     g = WIDGET (WIDGET (menubar)->owner);
menubar           269 lib/widget/menu.c     GROUP (g)->current = widget_find (g, widget_find_by_id (g, menubar->previous_widget));
menubar           271 lib/widget/menu.c     menubar->is_dropped = FALSE;
menubar           273 lib/widget/menu.c     menubar->is_dropped = TRUE;
menubar           276 lib/widget/menu.c     GROUP (g)->current = widget_find (g, WIDGET (menubar));
menubar           282 lib/widget/menu.c menubar_left (WMenuBar * menubar)
menubar           284 lib/widget/menu.c     menubar_remove (menubar);
menubar           285 lib/widget/menu.c     if (menubar->selected == 0)
menubar           286 lib/widget/menu.c         menubar->selected = g_list_length (menubar->menu) - 1;
menubar           288 lib/widget/menu.c         menubar->selected--;
menubar           289 lib/widget/menu.c     menubar_draw (menubar);
menubar           295 lib/widget/menu.c menubar_right (WMenuBar * menubar)
menubar           297 lib/widget/menu.c     menubar_remove (menubar);
menubar           298 lib/widget/menu.c     menubar->selected = (menubar->selected + 1) % g_list_length (menubar->menu);
menubar           299 lib/widget/menu.c     menubar_draw (menubar);
menubar           305 lib/widget/menu.c menubar_finish (WMenuBar * menubar)
menubar           307 lib/widget/menu.c     Widget *w = WIDGET (menubar);
menubar           310 lib/widget/menu.c     menubar->is_dropped = FALSE;
menubar           322 lib/widget/menu.c     group_select_widget_by_id (w->owner, menubar->previous_widget);
menubar           329 lib/widget/menu.c menubar_drop (WMenuBar * menubar, unsigned int selected)
menubar           331 lib/widget/menu.c     menubar->is_dropped = TRUE;
menubar           332 lib/widget/menu.c     menubar->selected = selected;
menubar           333 lib/widget/menu.c     menubar_draw (menubar);
menubar           339 lib/widget/menu.c menubar_execute (WMenuBar * menubar)
menubar           341 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           346 lib/widget/menu.c         Widget *w = WIDGET (menubar);
menubar           348 lib/widget/menu.c         mc_global.widget.is_right = (menubar->selected != 0);
menubar           349 lib/widget/menu.c         menubar_finish (menubar);
menubar           358 lib/widget/menu.c menubar_down (WMenuBar * menubar)
menubar           360 lib/widget/menu.c     menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           364 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menubar           373 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menubar           379 lib/widget/menu.c menubar_up (WMenuBar * menubar)
menubar           381 lib/widget/menu.c     menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           385 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menubar           397 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menubar           403 lib/widget/menu.c menubar_first (WMenuBar * menubar)
menubar           405 lib/widget/menu.c     if (menubar->is_dropped)
menubar           407 lib/widget/menu.c         menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           412 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menubar           428 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menubar           432 lib/widget/menu.c         menubar->selected = 0;
menubar           433 lib/widget/menu.c         menubar_draw (menubar);
menubar           440 lib/widget/menu.c menubar_last (WMenuBar * menubar)
menubar           442 lib/widget/menu.c     if (menubar->is_dropped)
menubar           444 lib/widget/menu.c         menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           451 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menubar           462 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menubar           466 lib/widget/menu.c         menubar->selected = g_list_length (menubar->menu) - 1;
menubar           467 lib/widget/menu.c         menubar_draw (menubar);
menubar           474 lib/widget/menu.c menubar_try_drop_menu (WMenuBar * menubar, int hotkey)
menubar           478 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menubar           484 lib/widget/menu.c             menubar_drop (menubar, g_list_position (menubar->menu, i));
menubar           495 lib/widget/menu.c menubar_try_exec_menu (WMenuBar * menubar, int hotkey)
menubar           500 lib/widget/menu.c     menu = g_list_nth_data (menubar->menu, menubar->selected);
menubar           510 lib/widget/menu.c             menubar_execute (menubar);
menubar           521 lib/widget/menu.c menubar_execute_cmd (WMenuBar * menubar, unsigned long command)
menubar           531 lib/widget/menu.c             if (menubar->is_dropped)
menubar           533 lib/widget/menu.c                     MENU (g_list_nth_data (menubar->menu, menubar->selected))->help_node;
menubar           538 lib/widget/menu.c             menubar_draw (menubar);
menubar           543 lib/widget/menu.c         menubar_left (menubar);
menubar           546 lib/widget/menu.c         menubar_right (menubar);
menubar           549 lib/widget/menu.c         if (menubar->is_dropped)
menubar           550 lib/widget/menu.c             menubar_up (menubar);
menubar           553 lib/widget/menu.c         if (menubar->is_dropped)
menubar           554 lib/widget/menu.c             menubar_down (menubar);
menubar           556 lib/widget/menu.c             menubar_drop (menubar, menubar->selected);
menubar           559 lib/widget/menu.c         menubar_first (menubar);
menubar           562 lib/widget/menu.c         menubar_last (menubar);
menubar           566 lib/widget/menu.c         if (menubar->is_dropped)
menubar           567 lib/widget/menu.c             menubar_execute (menubar);
menubar           569 lib/widget/menu.c             menubar_drop (menubar, menubar->selected);
menubar           572 lib/widget/menu.c         menubar_finish (menubar);
menubar           586 lib/widget/menu.c menubar_handle_key (WMenuBar * menubar, int key)
menubar           591 lib/widget/menu.c     cmd = widget_lookup_key (WIDGET (menubar), key);
menubar           594 lib/widget/menu.c         ret = menubar_execute_cmd (menubar, cmd);
menubar           598 lib/widget/menu.c         if (menubar->is_dropped)
menubar           599 lib/widget/menu.c             ret = menubar_try_exec_menu (menubar, key);
menubar           601 lib/widget/menu.c             ret = menubar_try_drop_menu (menubar, key);
menubar           610 lib/widget/menu.c menubar_refresh (WMenuBar * menubar)
menubar           612 lib/widget/menu.c     Widget *w = WIDGET (menubar);
menubar           628 lib/widget/menu.c menubar_free_menu (WMenuBar * menubar)
menubar           630 lib/widget/menu.c     g_clear_list (&menubar->menu, (GDestroyNotify) destroy_menu);
menubar           638 lib/widget/menu.c     WMenuBar *menubar = MENUBAR (w);
menubar           644 lib/widget/menu.c         if (menubar_refresh (menubar))
menubar           646 lib/widget/menu.c             menubar_draw (menubar);
menubar           659 lib/widget/menu.c             menubar_handle_key (menubar, parm);
menubar           669 lib/widget/menu.c         if (menubar->is_visible || menubar_refresh (menubar))
menubar           670 lib/widget/menu.c             menubar_draw (menubar);
menubar           676 lib/widget/menu.c         menubar_refresh (menubar);
menubar           680 lib/widget/menu.c         menubar_free_menu (menubar);
menubar           691 lib/widget/menu.c menubar_get_menu_by_x_coord (const WMenuBar * menubar, int x)
menubar           696 lib/widget/menu.c     for (i = 0, menu = menubar->menu;
menubar           710 lib/widget/menu.c menubar_mouse_on_menu (const WMenuBar * menubar, int y, int x)
menubar           712 lib/widget/menu.c     Widget *w = WIDGET (menubar);
menubar           716 lib/widget/menu.c     if (!menubar->is_dropped)
menubar           719 lib/widget/menu.c     menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           736 lib/widget/menu.c menubar_change_selected_item (WMenuBar * menubar, int y)
menubar           742 lib/widget/menu.c     menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           747 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menubar           749 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menubar           760 lib/widget/menu.c     WMenuBar *menubar = MENUBAR (w);
menubar           763 lib/widget/menu.c     mouse_on_drop = menubar_mouse_on_menu (menubar, event->y, event->x);
menubar           775 lib/widget/menu.c             selected = menubar_get_menu_by_x_coord (menubar, event->x);
menubar           776 lib/widget/menu.c             menubar_activate (menubar, TRUE, selected);
menubar           777 lib/widget/menu.c             menubar_remove (menubar);   /* if already shown */
menubar           778 lib/widget/menu.c             menubar_drop (menubar, selected);
menubar           781 lib/widget/menu.c             menubar_change_selected_item (menubar, event->y);
menubar           785 lib/widget/menu.c             menubar_finish (menubar);
menubar           805 lib/widget/menu.c             menubar_execute (menubar);
menubar           812 lib/widget/menu.c         if ((event->buttons & GPM_B_MIDDLE) != 0 && event->y > 0 && menubar->is_dropped)
menubar           815 lib/widget/menu.c             menubar_execute (menubar);
menubar           818 lib/widget/menu.c             menubar_execute (menubar);
menubar           821 lib/widget/menu.c             menubar_finish (menubar);
menubar           827 lib/widget/menu.c             menubar_remove (menubar);
menubar           828 lib/widget/menu.c             menubar_drop (menubar, menubar_get_menu_by_x_coord (menubar, event->x));
menubar           831 lib/widget/menu.c             menubar_change_selected_item (menubar, event->y);
menubar           846 lib/widget/menu.c                     menubar_left (menubar);
menubar           848 lib/widget/menu.c                     menubar_right (menubar);
menubar           854 lib/widget/menu.c                     menubar_up (menubar);
menubar           856 lib/widget/menu.c                     menubar_down (menubar);
menubar           942 lib/widget/menu.c     WMenuBar *menubar;
menubar           945 lib/widget/menu.c     menubar = g_new0 (WMenuBar, 1);
menubar           946 lib/widget/menu.c     w = WIDGET (menubar);
menubar           953 lib/widget/menu.c     menubar->is_visible = visible;
menubar           954 lib/widget/menu.c     menubar_set_menu (menubar, menu);
menubar           956 lib/widget/menu.c     return menubar;
menubar           962 lib/widget/menu.c menubar_set_menu (WMenuBar * menubar, GList * menu)
menubar           965 lib/widget/menu.c     menubar_free_menu (menubar);
menubar           967 lib/widget/menu.c     menubar->is_dropped = FALSE;
menubar           968 lib/widget/menu.c     menubar->menu = menu;
menubar           969 lib/widget/menu.c     menubar->selected = 0;
menubar           970 lib/widget/menu.c     menubar_arrange (menubar);
menubar           971 lib/widget/menu.c     widget_set_state (WIDGET (menubar), WST_FOCUSED, FALSE);
menubar           977 lib/widget/menu.c menubar_add_menu (WMenuBar * menubar, menu_t * menu)
menubar           981 lib/widget/menu.c         menu_arrange (menu, DIALOG (WIDGET (menubar)->owner)->get_shortcut);
menubar           982 lib/widget/menu.c         menubar->menu = g_list_append (menubar->menu, menu);
menubar           985 lib/widget/menu.c     menubar_arrange (menubar);
menubar           995 lib/widget/menu.c menubar_arrange (WMenuBar * menubar)
menubar          1001 lib/widget/menu.c     if (menubar->menu == NULL)
menubar          1004 lib/widget/menu.c     gap = WIDGET (menubar)->cols - 2;
menubar          1007 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menubar          1016 lib/widget/menu.c     if (g_list_next (menubar->menu) == NULL)
menubar          1019 lib/widget/menu.c         gap /= (g_list_length (menubar->menu) - 1);
menubar          1030 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menubar          1059 lib/widget/menu.c menubar_activate (WMenuBar * menubar, gboolean dropped, int which)
menubar          1061 lib/widget/menu.c     Widget *w = WIDGET (menubar);
menubar          1068 lib/widget/menu.c         menubar->is_dropped = dropped;
menubar          1070 lib/widget/menu.c             menubar->selected = (guint) which;
menubar          1072 lib/widget/menu.c         menubar->previous_widget = group_get_current_widget_id (w->owner);
menubar            54 lib/widget/menu.h void menubar_set_menu (WMenuBar * menubar, GList * menu);
menubar            55 lib/widget/menu.h void menubar_add_menu (WMenuBar * menubar, menu_t * menu);
menubar            56 lib/widget/menu.h void menubar_arrange (WMenuBar * menubar);
menubar            60 lib/widget/menu.h void menubar_activate (WMenuBar * menubar, gboolean dropped, int which);
menubar            65 lib/widget/menu.h menubar_set_visible (WMenuBar * menubar, gboolean visible)
menubar            67 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          1211 src/editor/editwidget.c     WMenuBar *menubar;
menubar          1252 src/editor/editwidget.c     menubar = menubar_new (NULL, TRUE);
menubar          1253 src/editor/editwidget.c     w = WIDGET (menubar);
menubar          1255 src/editor/editwidget.c     edit_init_menu (menubar);