| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
outside the menu.
(xmenu_show): Ignore `quote' when looking up the result.
|
| |
|
|
|
|
| |
coordinates. Make a dummy event to pass them to lw_popup_menu.
(single_submenu): Only ignore 1st char of pane name if that is an @.
|
| |
|
|
| |
frame->display => frame->output, struct x_display -> struct x_output.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
(x_activate_menubar): New function.
(set_frame_menubar): New arg deep_p. Callers changed.
Run various hooks here when deep_p is true.
(frame_vector): Variable deleted.
(syms_of_xmenu): Don't staticpro it.
(frame_vector_add_frame): Function deleted.
(menubar_id_to_frame): New function.
(menubar_selection_callback): Use menubar_id_to_frame.
(next_menubar_widget_id): New variable.
(set_frame_menubar): Use next_menubar_widget_id.
(free_frame_menubar): Get id from f->display.x->id.
|
| |
|
|
| |
are unchanged, don't recompute the widgets.
|
| |
|
|
| |
(set_frame_menubar): Bind it to nil.
|
| | |
|
| |
|
|
| |
(set_frame_menubar): Inhibit quitting.
|
| |
|
|
| |
no equivalent before, if it is in Vdefine_key_rebound_commands.
|
| |
|
|
| |
the longer vector.
|
| |
|
|
|
| |
(xdialog_show): Likewise.
(popup_get_selection): Don't call it here.
|
| | |
|
| | |
|
| |
|
|
|
| |
New arg `id'.
(xdialog_show, xmenu_show): Pass new arg to popup_get_selection.
|
| |
|
|
|
| |
in the same was as in xfns.c. Use LWLIB_ID type where appropriate.
(set_frame_menubar, free_frame_menubar): Add casts to LWLIB_ID.
|
| | |
|
| | |
|
| |
|
|
| |
of entry to an outer block, to guarantee its value is preserved.
|
| |
|
|
|
|
|
|
|
| |
Either queue or dispatch the event, but not both.
(dialog_selection_callback): Clear popup_activated_flag.
(Fx_popup_menu): If POSITION is just (menu-bar), use the
current mouse position.
(menubar_selection_callback): Use (menu-bar) instead of 'menu-bar.
|
| | |
|
| | |
|
| |
|
|
| |
(Fx_popup_menu): Don't compute menubarp.
|
| |
|
|
|
|
|
|
|
| |
for the menu, and process them afterward. New arg dpyinfo.
(set_frame_menubar): Use inhibit_garbage_collection.
[USE_X_TOOLKIT] (xmenu_show): Delete the queue code here.
Pass dpyinfo to popup_get_selection.
Don't call lw_destroy_all_widgets.
[USE_X_TOOLKIT] (xdialog_show): Simplify using popup_get_selection.
|
| |
|
|
| |
(single_submenu): Cast pointer to int by way of EMACS_INT.
|
| |
|
|
|
|
|
|
| |
(syms_of_xmenu): staticpro it.
(frame_vector_add_frame): New function.
(set_frame_menubar): Use frame_vector; use index as the widget id.
(free_frame_menubar): Likewise. Remove the frame from frame_vector.
(menubar_selection_callback): Use frame_vector to turn id into frame.
|
| |
|
|
| |
(Fx_popup_dialog): Likewise.
|
| |
|
|
| |
before calling mouse_position_hook.
|
| |
|
|
| |
menu bindings returned by Fwhere_is_internal.
|
| |
|
|
| |
includes both the frame and the magic cookie.
|
| |
|
|
| |
(Fx_popup_menu): Compute it and pass it.
|
| |
|
|
| |
check only the underlying command for a keyboard equivalent.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
(push_menu_item): New arg DEF.
(single_keymap_panes, list_of_items): Pass new arg.
(MENU_ITEMS_ITEM_DEFINITION): New macro.
(MENU_ITEMS_ITEM_LENGTH): Now 5.
[USE_X_TOOLKIT] (xmenu_show): Store 0 in call_data if item def is 0.
(single_submenu): Likewise.
(xmenu_show): Call x_mouse_leave.
|
| | |
|
| |
|
|
| |
and DisplayWidth. Use root_window slot in the x_display_info.
|
| |
|
|
|
| |
(xmenu_show): Use the screen in FRAME_X_DISPLAY_INFO,
not the display's default screen.
|
| |
|
|
|
| |
(menu_item_equiv_key): Reject equiv sequences
that start with mouse clicks.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
XSET directly.
|
| |
|
|
|
|
|
|
|
|
|
| |
(syms_of_xmenu): Conditionalize initialization of widget_id_tick.
(last_menu_bar_item_end): Var deleted.
(this_menu_bar_item_beg, this_menu_bar_item_end): Vars deleted.
(other_menu_bar_item_p, unread_menu_bar_button)
(check_mouse_other_menu_bar): Functions deleted.
(last_event_timestamp, Vdouble_click_time, Vmouse_depressed): Decls deleted.
(xmenu_show): XMENU_FOO conditional and its contets deleted.
|
| |
|
|
| |
calls to popup_get_selection() provide the protection.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(popup_get_selection, popup_activated, popup_activate_callback,
menubar_selection_callback, popup_deactivate_callback,
single_submenu): New or replaced functions.
(popup_activated_flag): New variable.
(dispatch_dummy_expose, event_is_in_menu_item, map_event_to_object):
Removed.
(update_frame_menubar): Use lw_refigure_widget to provide widget set
independence.
(set_frame_menubar): Use lw_allow_resizing to control unsightly Motif
menubar resizing in a widget set independent fashion.
(xmenu_show): Removed menubar handling code, since that is now done in
lwlib. Display a popup menu title centered and followed by two
separators. Use lw_popup_menu() to display the menu. Use
popup_get_selection() to deal with X11 event handling while the menu
is posted.
|
| |
|
|
| |
Use type test macros.
|
| | |
|
| |
|
|
| |
(menu_item_equiv_key): Use CHECK_IMPURE.
|
| | |
|
| |
|
|
|
|
|
| |
Call XtDispatchEvent for all ButtonRelease events.
xlwmenu.c now deals with posting the menu.
Check for events in subwidgets of the menu
when deciding whether to queue them for later handling.
|