menubar           122 lib/widget/menu.c menubar_paint_idx (const WMenuBar * menubar, unsigned int idx, int color)
menubar           124 lib/widget/menu.c     const Widget *w = CONST_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 (const WMenuBar * menubar)
menubar           182 lib/widget/menu.c     const Widget *w = CONST_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 (const WMenuBar * menubar, gboolean current, gboolean hotkey)
menubar           204 lib/widget/menu.c     if (!widget_get_state (CONST_WIDGET (menubar), WST_FOCUSED))
menubar           215 lib/widget/menu.c menubar_draw (const WMenuBar * menubar)
menubar           217 lib/widget/menu.c     const Widget *w = CONST_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_gotoyx (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     g_clear_list (&menubar->menu, (GDestroyNotify) destroy_menu);
menubar           636 lib/widget/menu.c     WMenuBar *menubar = MENUBAR (w);
menubar           642 lib/widget/menu.c         if (menubar_refresh (menubar))
menubar           644 lib/widget/menu.c             menubar_draw (menubar);
menubar           657 lib/widget/menu.c             menubar_handle_key (menubar, parm);
menubar           667 lib/widget/menu.c         if (menubar->is_visible || menubar_refresh (menubar))
menubar           668 lib/widget/menu.c             menubar_draw (menubar);
menubar           673 lib/widget/menu.c         menubar_refresh (menubar);
menubar           677 lib/widget/menu.c         menubar_free_menu (menubar);
menubar           688 lib/widget/menu.c menubar_get_menu_by_x_coord (const WMenuBar * menubar, int x)
menubar           693 lib/widget/menu.c     for (i = 0, menu = menubar->menu;
menubar           707 lib/widget/menu.c menubar_mouse_on_menu (const WMenuBar * menubar, int y, int x)
menubar           709 lib/widget/menu.c     Widget *w = WIDGET (menubar);
menubar           713 lib/widget/menu.c     if (!menubar->is_dropped)
menubar           716 lib/widget/menu.c     menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           733 lib/widget/menu.c menubar_change_selected_item (WMenuBar * menubar, int y)
menubar           739 lib/widget/menu.c     menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           744 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menubar           746 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menubar           757 lib/widget/menu.c     WMenuBar *menubar = MENUBAR (w);
menubar           760 lib/widget/menu.c     mouse_on_drop = menubar_mouse_on_menu (menubar, event->y, event->x);
menubar           772 lib/widget/menu.c             selected = menubar_get_menu_by_x_coord (menubar, event->x);
menubar           773 lib/widget/menu.c             menubar_activate (menubar, TRUE, selected);
menubar           774 lib/widget/menu.c             menubar_remove (menubar);   /* if already shown */
menubar           775 lib/widget/menu.c             menubar_drop (menubar, selected);
menubar           778 lib/widget/menu.c             menubar_change_selected_item (menubar, event->y);
menubar           782 lib/widget/menu.c             menubar_finish (menubar);
menubar           802 lib/widget/menu.c             menubar_execute (menubar);
menubar           809 lib/widget/menu.c         if ((event->buttons & GPM_B_MIDDLE) != 0 && event->y > 0 && menubar->is_dropped)
menubar           812 lib/widget/menu.c             menubar_execute (menubar);
menubar           815 lib/widget/menu.c             menubar_execute (menubar);
menubar           818 lib/widget/menu.c             menubar_finish (menubar);
menubar           824 lib/widget/menu.c             menubar_remove (menubar);
menubar           825 lib/widget/menu.c             menubar_drop (menubar, menubar_get_menu_by_x_coord (menubar, event->x));
menubar           828 lib/widget/menu.c             menubar_change_selected_item (menubar, event->y);
menubar           843 lib/widget/menu.c                     menubar_left (menubar);
menubar           845 lib/widget/menu.c                     menubar_right (menubar);
menubar           851 lib/widget/menu.c                     menubar_up (menubar);
menubar           853 lib/widget/menu.c                     menubar_down (menubar);
menubar           939 lib/widget/menu.c     WMenuBar *menubar;
menubar           942 lib/widget/menu.c     menubar = g_new0 (WMenuBar, 1);
menubar           943 lib/widget/menu.c     w = WIDGET (menubar);
menubar           949 lib/widget/menu.c     menubar->is_visible = visible;
menubar           950 lib/widget/menu.c     menubar_set_menu (menubar, menu);
menubar           952 lib/widget/menu.c     return menubar;
menubar           958 lib/widget/menu.c menubar_set_menu (WMenuBar * menubar, GList * menu)
menubar           961 lib/widget/menu.c     menubar_free_menu (menubar);
menubar           963 lib/widget/menu.c     menubar->is_dropped = FALSE;
menubar           964 lib/widget/menu.c     menubar->menu = menu;
menubar           965 lib/widget/menu.c     menubar->selected = 0;
menubar           966 lib/widget/menu.c     menubar_arrange (menubar);
menubar           967 lib/widget/menu.c     widget_set_state (WIDGET (menubar), WST_FOCUSED, FALSE);
menubar           973 lib/widget/menu.c menubar_add_menu (WMenuBar * menubar, menu_t * menu)
menubar           977 lib/widget/menu.c         menu_arrange (menu, WIDGET (menubar)->owner->get_shortcut);
menubar           978 lib/widget/menu.c         menubar->menu = g_list_append (menubar->menu, menu);
menubar           981 lib/widget/menu.c     menubar_arrange (menubar);
menubar           991 lib/widget/menu.c menubar_arrange (WMenuBar * menubar)
menubar           997 lib/widget/menu.c     if (menubar->menu == NULL)
menubar          1000 lib/widget/menu.c     gap = WIDGET (menubar)->cols - 2;
menubar          1003 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menubar          1012 lib/widget/menu.c     if (g_list_next (menubar->menu) == NULL)
menubar          1015 lib/widget/menu.c         gap /= (g_list_length (menubar->menu) - 1);
menubar          1026 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menubar          1055 lib/widget/menu.c menubar_activate (WMenuBar * menubar, gboolean dropped, int which)
menubar          1057 lib/widget/menu.c     Widget *w = WIDGET (menubar);
menubar          1064 lib/widget/menu.c         menubar->is_dropped = dropped;
menubar          1066 lib/widget/menu.c             menubar->selected = (guint) which;
menubar          1068 lib/widget/menu.c         menubar->previous_widget = dlg_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          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);