| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| |
|
|
|
| |
down; instead it forces the next ButtonRelease to exit. Don't
dispatch on ButtonPress events.
|
| |
|
|
|
|
| |
ButtonRelease does so if within Vdouble_click_time.
Ignore mouse motion if button was already released.
(menu_item_selection): Declare volatile, if __STDC__.
|
| |
|
|
| |
(menu_item_equiv_key): GCPRO things.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
un-aliased command name as well as given command name.
|
| | |
|
| |
|
|
| |
and after one stage of symbol function indirection.
|
| | |
|
| | |
|
| |
|
|
| |
except for the first pane. Ignore named panes too if KEYMAPS.
|
| |
|
|
|
|
| |
led to the menu.
(Fx_popup_menu): Suppress duplicate test case in the way to determine
whether the menu is handling a menu bar click.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
If we unread some events, set interrupt_input_pending.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
(xmenu_show): Set that var.
(other_menu_bar_item_p): Return 0 if mouse is not in any menu bar item.
(xmenu_show, xdialog_show): Add casts in assignments
to widget_value fields from string contents.
(dispatch_dummy_expose): Cast arg to XtDispatchEvent.
[!USE_X_TOOLKIT] (xmenu_show): Right-justify char equivalents.
Use alloca for concatenated strings, if alloca is fast.
[USE_X_TOOLKIT] (xmenu_show): Use XtTranslateCoords.
|
| | |
|
| |
|
|
|
|
|
| |
(list_of_items): Handle nil in item list as left/right boundary.
(push_left_right_boundary): Record the boundary.
(xmenu_show): Disregard a boundary if any.
(xdialog_show): Really obey a boundary.
|
| | |
|
| | |
|
| |
|
|
| |
Do call lw_destroy_all_widgets at the end.
|
| |
|
|
|
| |
Don't update the menubar the first time it is created via x_window.
(initialize_frame_menubar): Pass 1 to set_frame_menubar.
|
| | |
|
| |
|
|
|
| |
(initialize_frame_menubar): New function.
(set_frame_menubar): Call menu_bar_items when items is NIL.
|
| |
|
|
|
|
|
| |
(Fx_popup_dialog): Don't pass those args; don't compute them.
Second arg is now just one pane. Lots of simplification.
Always start by decoding POSITION arg to get a frame.
[! USE_X_TOOLKIT]: Put the menu in middle of that frame.
|
| |
|
|
|
|
| |
(xdialog_show): Call lw_modify_all_widgets properly.
Generate dialog's name at run time to specify number of buttons.
Report error if too many buttons to handle or if multiple panes.
|
| | |
|
| | |
|
| |
|
|
| |
mouse_position_hook doesn't store anything.
|
| |
|
|
| |
(Fx_popup_dialog) [! USE_X_TOOLKIT]: Call Fx_popup_menu.
|
| | |
|
| |
|
|
|
|
|
| |
(Fx_popup_dialog): New function.
(dialog_selection_callback): New function.
(xmenu_show) [USE_X_TOOLKIT]: Don't call lw_destroy_all_widgets at the end.
Do the work of construct_mouse_click in the ButtonRelease case.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
don't require an open X connection.
(single_keymap_panes, keymap_panes, menu_item_enabled_p): New arg NOTREAL.
(Fx_popup_menu): Pass new arg (1 if POSITION is nil).
(menu_item_enabled_p): If NOTREAL, always return t.
(single_keymap_panes) [!USE_X_TOOLKIT]:
Append > to item_string if submenu.
[USE_X_TOOLKIT]: Display submenus in Xt style.
(menu_items): Record where submenus start and end.
(menu_items_submenu_depth): New variable.
(init_menu_items): Init it.
(push_submenu_start, push_submenu_end): New functions.
(grow_menu_items): New function.
(push_menu_pane, push_menu_item): Use it.
(push_menu_pane): Increment menu_items_n_panes only if depth is 0.
(single_keymap_panes) [USE_X_TOOLKIT]: Record submenus in menu_items.
(xmenu_show) [USE_X_TOOLKIT]: Give submenus to toolkit.
|
| |
|
|
|
|
| |
force the paned widget to resize to the right value.
(xmenu_show): No need to check a second time whether the mouse has
moved to another menu bar item. This slows down execution.
|
| | |
|
| |
|
|
| |
Use FRAME_MENU_BAR_LINES as vector.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Allow nil as position, meaning just precompute equiv-key data.
Mouse events have coords in pixel units.
(menu_item_equiv_key): Cached equiv-key data is a sublist.
Most of file rewritten.
(menu_items, menu_items_*): New variables.
(MENU_ITEMS_*): New macros.
(init_menu_items, discard_menu_items, push_menu_pane, push_menu_item)
(finish_menu_items): New functions.
(menu_item_enabled_p): New function.
(keymap_panes, single_keymap_panes): Major rewrite; most args changed.
(list_of_panes, list_of_items): Major rewrite; most args changed.
(Fx_popup_menu): Major rewrite. Now independent of display mechanism.
No more conditionals here.
(set_menu_items, free_menu_items): Functions deleted.
(xmenu_show): Both versions rewritten to work from menu_items
and to do all the conditionalized things that were in Fx_popup_menu.
(unread_menu_bar_button, other_menu_bar_item_p): New functions.
(check_mouse_other_menu_bar): New function.
|
| |
|
|
|
|
| |
Rename item2 to item_string.
GCPRO some things.
(menu_item_equiv_key): Use either VECTORP or STRINGP, not both.
|
| |
|
|
|
| |
(menu_item_equiv_key): New function.
(single_keymap_panes): Call it.
|
| |
|
|
| |
(popup_down_callback): Likewise.
|
| | |
|