aboutsummaryrefslogtreecommitdiffstats
path: root/src/xmenu.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (popup_get_selection): Pop menu down if button is pressedRichard M. Stallman1995-09-241-0/+12
| | | | | | outside the menu. (xmenu_show): Ignore `quote' when looking up the result.
* [USE_X_TOOLKIT] (xmenu_show): Compute root-basedRichard M. Stallman1995-08-021-5/+51
| | | | | | 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 @.
* Do renamings:Karl Heuer1995-07-261-1/+1
| | | | frame->display => frame->output, struct x_display -> struct x_output.
* Renamings: frame->display => frame->output, struct x_display -> sruct x_output.Richard M. Stallman1995-07-251-30/+30
|
* Include buffer.h.Richard M. Stallman1995-07-251-118/+198
| | | | | | | | | | | | | | (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.
* (set_frame_menubar): If the Lisp-level menu bar menusRichard M. Stallman1995-07-211-5/+29
| | | | are unchanged, don't recompute the widgets.
* (syms_of_xmenu): Set up Qdebug_on_next_call.Richard M. Stallman1995-07-211-0/+8
| | | | (set_frame_menubar): Bind it to nil.
* (single_submenu): Handle commands appearing directly in the menu bar.Richard M. Stallman1995-06-291-2/+23
|
* (menu_item_enabled_p_1): Special handling for quit.Richard M. Stallman1995-06-221-0/+10
| | | | (set_frame_menubar): Inhibit quitting.
* (menu_item_equiv_key): Do reconsider a command that hadRichard M. Stallman1995-06-171-3/+9
| | | | no equivalent before, if it is in Vdefine_key_rebound_commands.
* (frame_vector_add_frame): Don't forget to storeKarl Heuer1995-06-121-0/+1
| | | | the longer vector.
* (xmenu_show): Do call lw_destroy_all_widgets.Karl Heuer1995-06-091-5/+4
| | | | | (xdialog_show): Likewise. (popup_get_selection): Don't call it here.
* (xmenu_show): If !HAVE_X_WINDOWS, don't reference X display.Karl Heuer1995-06-081-0/+2
|
* (set_frame_menubar): Always call update_frame_menubar.Karl Heuer1995-05-301-4/+7
|
* (popup_get_selection): Force deactivation if key pressed.Karl Heuer1995-05-261-4/+14
| | | | | New arg `id'. (xdialog_show, xmenu_show): Pass new arg to popup_get_selection.
* (xmenu_show, xdialog_show): Increment widget_id_tickKarl Heuer1995-05-251-9/+14
| | | | | 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.
* (Fx_popup_dialog): Treat (menu-bar) like t, for POSITION.Karl Heuer1995-05-241-4/+3
|
* (set_frame_menubar): Set menubar_height field.Karl Heuer1995-05-241-0/+19
|
* (xmenu_show, menubar_selection_callback): Move declarationKarl Heuer1995-05-021-6/+2
| | | | of entry to an outer block, to guarantee its value is preserved.
* (popup_get_selection): Use x_non_menubar_window_to_frame.Karl Heuer1995-04-291-7/+11
| | | | | | | | | 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.
* (xmenu_show): x_mouse_leave needs an arg.Karl Heuer1995-04-241-1/+1
|
* (Fx_popup_dialog): Don't pass menubarp arg to xdialog_show.Karl Heuer1995-04-201-1/+1
|
* (xmenu_show, xdialog_show): Delete menubarp arg.Richard M. Stallman1995-04-191-14/+4
| | | | (Fx_popup_menu): Don't compute menubarp.
* (popup_get_selection): Queue up events that aren'tRichard M. Stallman1995-04-141-84/+65
| | | | | | | | | 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.
* (menubar_selection_callback, dialog_selection_callback)Richard M. Stallman1995-04-071-3/+9
| | | | (single_submenu): Cast pointer to int by way of EMACS_INT.
* (frame_vector): New static variable.Richard M. Stallman1995-04-071-4/+51
| | | | | | | | (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_menu): Pass 1 for `insist' arg.Richard M. Stallman1995-03-261-2/+3
| | | | (Fx_popup_dialog): Likewise.
* (Fx_popup_menu): Init f from selected_frameRichard M. Stallman1995-02-251-2/+2
| | | | before calling mouse_position_hook.
* (menu_item_equiv_key): Delete the code that rejectedRichard M. Stallman1995-02-231-16/+0
| | | | menu bindings returned by Fwhere_is_internal.
* (menubar_selection_callback): frame_or_window field of a menu-bar event nowKarl Heuer1995-02-221-8/+8
| | | | includes both the frame and the magic cookie.
* (xmenu_show, both versions): New arg for_click.Richard M. Stallman1995-02-151-5/+10
| | | | (Fx_popup_menu): Compute it and pass it.
* (menu_item_equiv_key): If command is an alias,Richard M. Stallman1995-02-121-1/+5
| | | | check only the underlying command for a keyboard equivalent.
* [MSDOS]: #include msdos.h.Richard M. Stallman1995-01-201-0/+4
|
* Don't include ../oldXMenu/XMenu.h if USE_X_TOOLKIT.Richard M. Stallman1994-12-151-21/+39
| | | | | | | | | | | (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.
* (set_frame_menubar): Don't copy string during GC risk.Karl Heuer1994-10-271-5/+18
|
* (xmenu_show): Get the screen number for DisplayHeightRichard M. Stallman1994-10-221-3/+3
| | | | and DisplayWidth. Use root_window slot in the x_display_info.
* (xdialog_show, xmenu_show): Use grabbed field instead of x_mouse_grabbed.Richard M. Stallman1994-10-201-6/+4
| | | | | (xmenu_show): Use the screen in FRAME_X_DISPLAY_INFO, not the display's default screen.
* Use FRAME_X_DISPLAY, not XDISPLAY or x_current_display.Richard M. Stallman1994-10-191-18/+32
| | | | | (menu_item_equiv_key): Reject equiv sequences that start with mouse clicks.
* *** empty log message ***Morten Welinder1994-10-171-1/+10
|
* Delete HAVE_X11 conditionals.Richard M. Stallman1994-10-151-10/+0
|
* (single_keymap_panes, Fx_popup_menu): Don't use XFASTINT as an lvalue.Karl Heuer1994-10-041-3/+3
|
* (Fx_popup_menu, Fx_popup_dialog): Use new accessor macros instead of callingKarl Heuer1994-10-041-5/+5
| | | | XSET directly.
* (widget_id_tick): Move definition into conditional.Richard M. Stallman1994-10-041-94/+8
| | | | | | | | | | | (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.
* (popup_get_selection): Remove BLOCK_INPUT, UNBLOCK_INPUT since thePaul Reilly1994-10-021-10/+11
| | | | calls to popup_get_selection() provide the protection.
* (widget_id_tick): Renamed from popup_id_tick.Paul Reilly1994-10-021-346/+380
| | | | | | | | | | | | | | | | | | | | | | | (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.
* (menu_item_enabled_p, single_keymap_panes, Fx_popup_menu, Fx_popup_dialog):Karl Heuer1994-09-271-16/+16
| | | | Use type test macros.
* (menu_item_enabled_p): Fix declaration.Karl Heuer1994-09-171-0/+1
|
* Include puresize.h.Richard M. Stallman1994-09-141-1/+5
| | | | (menu_item_equiv_key): Use CHECK_IMPURE.
* (xmenu_show): Don't queue events that are in the menu bar.Richard M. Stallman1994-08-281-3/+8
|
* (xmenu_show): Do nothing special for ButtonPress in the menu.Richard M. Stallman1994-08-251-24/+27
| | | | | | | 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.