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           198 lib/widget/menu.c         menubar_paint_idx (menubar, i,
menubar           205 lib/widget/menu.c menubar_set_color (const WMenuBar * menubar, gboolean current, gboolean hotkey)
menubar           207 lib/widget/menu.c     if (!widget_get_state (CONST_WIDGET (menubar), WST_FOCUSED))
menubar           218 lib/widget/menu.c menubar_draw (const WMenuBar * menubar)
menubar           220 lib/widget/menu.c     const Widget *w = CONST_WIDGET (menubar);
menubar           228 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menubar           231 lib/widget/menu.c         gboolean is_selected = (menubar->selected == (gsize) g_list_position (menubar->menu, i));
menubar           233 lib/widget/menu.c         menubar_set_color (menubar, is_selected, FALSE);
menubar           241 lib/widget/menu.c             menubar_set_color (menubar, is_selected, TRUE);
menubar           243 lib/widget/menu.c             menubar_set_color (menubar, is_selected, FALSE);
menubar           252 lib/widget/menu.c     if (menubar->is_dropped)
menubar           253 lib/widget/menu.c         menubar_draw_drop (menubar);
menubar           255 lib/widget/menu.c         widget_gotoyx (w, 0, MENU (g_list_nth_data (menubar->menu, menubar->selected))->start_x);
menubar           261 lib/widget/menu.c menubar_remove (WMenuBar * menubar)
menubar           265 lib/widget/menu.c     if (!menubar->is_dropped)
menubar           272 lib/widget/menu.c     g = WIDGET (WIDGET (menubar)->owner);
menubar           273 lib/widget/menu.c     GROUP (g)->current = widget_find (g, widget_find_by_id (g, menubar->previous_widget));
menubar           275 lib/widget/menu.c     menubar->is_dropped = FALSE;
menubar           277 lib/widget/menu.c     menubar->is_dropped = TRUE;
menubar           280 lib/widget/menu.c     GROUP (g)->current = widget_find (g, WIDGET (menubar));
menubar           286 lib/widget/menu.c menubar_left (WMenuBar * menubar)
menubar           288 lib/widget/menu.c     menubar_remove (menubar);
menubar           289 lib/widget/menu.c     if (menubar->selected == 0)
menubar           290 lib/widget/menu.c         menubar->selected = g_list_length (menubar->menu) - 1;
menubar           292 lib/widget/menu.c         menubar->selected--;
menubar           293 lib/widget/menu.c     menubar_draw (menubar);
menubar           299 lib/widget/menu.c menubar_right (WMenuBar * menubar)
menubar           301 lib/widget/menu.c     menubar_remove (menubar);
menubar           302 lib/widget/menu.c     menubar->selected = (menubar->selected + 1) % g_list_length (menubar->menu);
menubar           303 lib/widget/menu.c     menubar_draw (menubar);
menubar           309 lib/widget/menu.c menubar_finish (WMenuBar * menubar)
menubar           311 lib/widget/menu.c     Widget *w = WIDGET (menubar);
menubar           313 lib/widget/menu.c     menubar->is_dropped = FALSE;
menubar           331 lib/widget/menu.c     group_select_widget_by_id (w->owner, menubar->previous_widget);
menubar           338 lib/widget/menu.c menubar_drop (WMenuBar * menubar, unsigned int selected)
menubar           340 lib/widget/menu.c     menubar->is_dropped = TRUE;
menubar           341 lib/widget/menu.c     menubar->selected = selected;
menubar           342 lib/widget/menu.c     menubar_draw (menubar);
menubar           348 lib/widget/menu.c menubar_execute (WMenuBar * menubar)
menubar           350 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           355 lib/widget/menu.c         Widget *w = WIDGET (menubar);
menubar           357 lib/widget/menu.c         mc_global.widget.is_right = (menubar->selected != 0);
menubar           358 lib/widget/menu.c         menubar_finish (menubar);
menubar           367 lib/widget/menu.c menubar_down (WMenuBar * menubar)
menubar           369 lib/widget/menu.c     menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           373 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menubar           382 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menubar           388 lib/widget/menu.c menubar_up (WMenuBar * menubar)
menubar           390 lib/widget/menu.c     menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           394 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menubar           406 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menubar           412 lib/widget/menu.c menubar_first (WMenuBar * menubar)
menubar           414 lib/widget/menu.c     if (menubar->is_dropped)
menubar           416 lib/widget/menu.c         menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           421 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menubar           437 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menubar           441 lib/widget/menu.c         menubar->selected = 0;
menubar           442 lib/widget/menu.c         menubar_draw (menubar);
menubar           449 lib/widget/menu.c menubar_last (WMenuBar * menubar)
menubar           451 lib/widget/menu.c     if (menubar->is_dropped)
menubar           453 lib/widget/menu.c         menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           460 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menubar           471 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menubar           475 lib/widget/menu.c         menubar->selected = g_list_length (menubar->menu) - 1;
menubar           476 lib/widget/menu.c         menubar_draw (menubar);
menubar           483 lib/widget/menu.c menubar_try_drop_menu (WMenuBar * menubar, int hotkey)
menubar           487 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menubar           493 lib/widget/menu.c             menubar_drop (menubar, g_list_position (menubar->menu, i));
menubar           504 lib/widget/menu.c menubar_try_exec_menu (WMenuBar * menubar, int hotkey)
menubar           509 lib/widget/menu.c     menu = g_list_nth_data (menubar->menu, menubar->selected);
menubar           519 lib/widget/menu.c             menubar_execute (menubar);
menubar           530 lib/widget/menu.c menubar_execute_cmd (WMenuBar * menubar, long command)
menubar           540 lib/widget/menu.c             if (menubar->is_dropped)
menubar           542 lib/widget/menu.c                     MENU (g_list_nth_data (menubar->menu, menubar->selected))->help_node;
menubar           547 lib/widget/menu.c             menubar_draw (menubar);
menubar           552 lib/widget/menu.c         menubar_left (menubar);
menubar           555 lib/widget/menu.c         menubar_right (menubar);
menubar           558 lib/widget/menu.c         if (menubar->is_dropped)
menubar           559 lib/widget/menu.c             menubar_up (menubar);
menubar           562 lib/widget/menu.c         if (menubar->is_dropped)
menubar           563 lib/widget/menu.c             menubar_down (menubar);
menubar           565 lib/widget/menu.c             menubar_drop (menubar, menubar->selected);
menubar           568 lib/widget/menu.c         menubar_first (menubar);
menubar           571 lib/widget/menu.c         menubar_last (menubar);
menubar           575 lib/widget/menu.c         if (menubar->is_dropped)
menubar           576 lib/widget/menu.c             menubar_execute (menubar);
menubar           578 lib/widget/menu.c             menubar_drop (menubar, menubar->selected);
menubar           581 lib/widget/menu.c         menubar_finish (menubar);
menubar           595 lib/widget/menu.c menubar_handle_key (WMenuBar * menubar, int key)
menubar           600 lib/widget/menu.c     cmd = widget_lookup_key (WIDGET (menubar), key);
menubar           603 lib/widget/menu.c         ret = menubar_execute_cmd (menubar, cmd);
menubar           607 lib/widget/menu.c         if (menubar->is_dropped)
menubar           608 lib/widget/menu.c             ret = menubar_try_exec_menu (menubar, key);
menubar           610 lib/widget/menu.c             ret = menubar_try_drop_menu (menubar, key);
menubar           619 lib/widget/menu.c menubar_refresh (WMenuBar * menubar)
menubar           621 lib/widget/menu.c     Widget *w = WIDGET (menubar);
menubar           637 lib/widget/menu.c menubar_free_menu (WMenuBar * menubar)
menubar           639 lib/widget/menu.c     g_clear_list (&menubar->menu, (GDestroyNotify) destroy_menu);
menubar           647 lib/widget/menu.c     WMenuBar *menubar = MENUBAR (w);
menubar           653 lib/widget/menu.c         if (menubar_refresh (menubar))
menubar           655 lib/widget/menu.c             menubar_draw (menubar);
menubar           668 lib/widget/menu.c             menubar_handle_key (menubar, parm);
menubar           678 lib/widget/menu.c         if (widget_get_state (w, WST_VISIBLE) || menubar_refresh (menubar))
menubar           679 lib/widget/menu.c             menubar_draw (menubar);
menubar           685 lib/widget/menu.c         menubar_refresh (menubar);
menubar           689 lib/widget/menu.c         menubar_free_menu (menubar);
menubar           700 lib/widget/menu.c menubar_get_menu_by_x_coord (const WMenuBar * menubar, int x)
menubar           705 lib/widget/menu.c     for (i = 0, menu = menubar->menu;
menubar           719 lib/widget/menu.c menubar_mouse_on_menu (const WMenuBar * menubar, int y, int x)
menubar           721 lib/widget/menu.c     Widget *w = WIDGET (menubar);
menubar           725 lib/widget/menu.c     if (!menubar->is_dropped)
menubar           728 lib/widget/menu.c     menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           745 lib/widget/menu.c menubar_change_selected_item (WMenuBar * menubar, int y)
menubar           751 lib/widget/menu.c     menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           756 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menubar           758 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menubar           769 lib/widget/menu.c     WMenuBar *menubar = MENUBAR (w);
menubar           772 lib/widget/menu.c     mouse_on_drop = menubar_mouse_on_menu (menubar, event->y, event->x);
menubar           784 lib/widget/menu.c             selected = menubar_get_menu_by_x_coord (menubar, event->x);
menubar           785 lib/widget/menu.c             menubar_activate (menubar, TRUE, selected);
menubar           786 lib/widget/menu.c             menubar_remove (menubar);   /* if already shown */
menubar           787 lib/widget/menu.c             menubar_drop (menubar, selected);
menubar           790 lib/widget/menu.c             menubar_change_selected_item (menubar, event->y);
menubar           794 lib/widget/menu.c             menubar_finish (menubar);
menubar           814 lib/widget/menu.c             menubar_execute (menubar);
menubar           821 lib/widget/menu.c         if ((event->buttons & GPM_B_MIDDLE) != 0 && event->y > 0 && menubar->is_dropped)
menubar           824 lib/widget/menu.c             menubar_execute (menubar);
menubar           827 lib/widget/menu.c             menubar_execute (menubar);
menubar           830 lib/widget/menu.c             menubar_finish (menubar);
menubar           836 lib/widget/menu.c             menubar_remove (menubar);
menubar           837 lib/widget/menu.c             menubar_drop (menubar, menubar_get_menu_by_x_coord (menubar, event->x));
menubar           840 lib/widget/menu.c             menubar_change_selected_item (menubar, event->y);
menubar           855 lib/widget/menu.c                     menubar_left (menubar);
menubar           857 lib/widget/menu.c                     menubar_right (menubar);
menubar           863 lib/widget/menu.c                     menubar_up (menubar);
menubar           865 lib/widget/menu.c                     menubar_down (menubar);
menubar           951 lib/widget/menu.c     WMenuBar *menubar;
menubar           954 lib/widget/menu.c     menubar = g_new0 (WMenuBar, 1);
menubar           955 lib/widget/menu.c     w = WIDGET (menubar);
menubar           962 lib/widget/menu.c     menubar_set_menu (menubar, menu);
menubar           964 lib/widget/menu.c     return menubar;
menubar           970 lib/widget/menu.c menubar_set_menu (WMenuBar * menubar, GList * menu)
menubar           973 lib/widget/menu.c     menubar_free_menu (menubar);
menubar           975 lib/widget/menu.c     menubar->is_dropped = FALSE;
menubar           976 lib/widget/menu.c     menubar->menu = menu;
menubar           977 lib/widget/menu.c     menubar->selected = 0;
menubar           978 lib/widget/menu.c     menubar_arrange (menubar);
menubar           979 lib/widget/menu.c     widget_set_state (WIDGET (menubar), WST_FOCUSED, FALSE);
menubar           985 lib/widget/menu.c menubar_add_menu (WMenuBar * menubar, menu_t * menu)
menubar           989 lib/widget/menu.c         menu_arrange (menu, DIALOG (WIDGET (menubar)->owner)->get_shortcut);
menubar           990 lib/widget/menu.c         menubar->menu = g_list_append (menubar->menu, menu);
menubar           993 lib/widget/menu.c     menubar_arrange (menubar);
menubar          1003 lib/widget/menu.c menubar_arrange (WMenuBar * menubar)
menubar          1009 lib/widget/menu.c     if (menubar->menu == NULL)
menubar          1012 lib/widget/menu.c     gap = WIDGET (menubar)->cols - 2;
menubar          1015 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menubar          1024 lib/widget/menu.c     if (g_list_next (menubar->menu) == NULL)
menubar          1027 lib/widget/menu.c         gap /= (g_list_length (menubar->menu) - 1);
menubar          1038 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menubar          1067 lib/widget/menu.c menubar_activate (WMenuBar * menubar, gboolean dropped, int which)
menubar          1069 lib/widget/menu.c     Widget *w = WIDGET (menubar);
menubar          1077 lib/widget/menu.c         menubar->is_dropped = dropped;
menubar          1079 lib/widget/menu.c             menubar->selected = (guint) which;
menubar          1081 lib/widget/menu.c         menubar->previous_widget = group_get_current_widget_id (w->owner);
menubar            53 lib/widget/menu.h void menubar_set_menu (WMenuBar * menubar, GList * menu);
menubar            54 lib/widget/menu.h void menubar_add_menu (WMenuBar * menubar, menu_t * menu);
menubar            55 lib/widget/menu.h void menubar_arrange (WMenuBar * menubar);
menubar            59 lib/widget/menu.h void menubar_activate (WMenuBar * menubar, gboolean dropped, int which);
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          1219 src/editor/editwidget.c     WMenuBar *menubar;
menubar          1260 src/editor/editwidget.c     menubar = menubar_new (NULL);
menubar          1261 src/editor/editwidget.c     w = WIDGET (menubar);
menubar          1263 src/editor/editwidget.c     edit_init_menu (menubar);