aboutsummaryrefslogtreecommitdiffstats
path: root/src/xmenu.c
Commit message (Collapse)AuthorAgeFilesLines
* (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.
* (xmenu_show): Unconditionally update x_mouse_grabbed and Vmouse_depressed.Richard M. Stallman1994-08-141-10/+12
|
* (xmenu_show): Ignore any geometry resource from the user.Richard M. Stallman1994-08-011-0/+8
|
* [USE_X_TOOLKIT] (xmenu_show): Handle UnmapNotify events.Richard M. Stallman1994-07-171-0/+7
|
* (xmenu_show): Don't call XtUngrabPointer here.Richard M. Stallman1994-07-121-0/+4
|
* (xmenu_show) {USE_X_TOOLKIT}: ButtonPress no longer popsRichard M. Stallman1994-07-071-0/+12
| | | | | down; instead it forces the next ButtonRelease to exit. Don't dispatch on ButtonPress events.
* (xmenu_show) [USE_X_TOOLKIT]: Keyboard input exits the menu.Richard M. Stallman1994-07-071-4/+33
| | | | | | ButtonRelease does so if within Vdouble_click_time. Ignore mouse motion if button was already released. (menu_item_selection): Declare volatile, if __STDC__.
* (single_keymap_panes): Put menu_item_equiv_key in the gcpro.Richard M. Stallman1994-06-211-6/+15
| | | | (menu_item_equiv_key): GCPRO things.
* Put stdio.h after config.h.Richard M. Stallman1994-06-151-2/+2
|
* (single_keymap_panes): gcpro some things.Karl Heuer1994-06-131-0/+4
|
* (xmenu_show): Don't call XMenuDestroy twice in XM_FAILURE case.Richard M. Stallman1994-06-111-1/+0
|
* (menu_item_equiv_key): Check whether def1 matchesRichard M. Stallman1994-06-071-0/+5
| | | | un-aliased command name as well as given command name.
* (xdialog_show): Fix problem with message in dialog box.Karl Heuer1994-06-021-1/+1
|
* (menu_item_equiv_key): Look for equiv keys both beforeRichard M. Stallman1994-05-251-0/+7
| | | | and after one stage of symbol function indirection.
* (other_menu_bar_item_p): Return 0 if no menu bar.Richard M. Stallman1994-05-191-0/+1
|
* (xmenu_show): Don't look in menubar for core.height if no menu bar.Richard M. Stallman1994-05-191-2/+3
|
* (xmenu_show): Completely ignore nameless panesRichard M. Stallman1994-05-171-3/+14
| | | | except for the first pane. Ignore named panes too if KEYMAPS.
* (xmenu_show): New var mb_item. Use it to determine the menubar item thatFred Pierresteguy1994-05-111-7/+7
| | | | | | 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.
* (string_width): Deleted.Richard M. Stallman1994-05-111-13/+0
|
* (xmenu_show): Disallow empty menus.Karl Heuer1994-05-051-0/+11
|
* (Fx_popup_menu): Restore accidentally-deleted call to mouse_position_hook.Karl Heuer1994-05-051-0/+2
|
* (xdialog_show): Clear x_mouse_grabbed.Richard M. Stallman1994-04-291-0/+13
|
* (Fx_popup_menu): Doc fix.Richard M. Stallman1994-04-281-1/+1
|
* (xmenu_show, xdialog_show):Richard M. Stallman1994-04-271-0/+4
| | | | If we unread some events, set interrupt_input_pending.
* (xmenu_show): Fix typo in last change.Richard M. Stallman1994-04-171-1/+1
|
* (xmenu_show): Don't cons on subprefix_stck[j] if nil.Richard M. Stallman1994-04-161-1/+2
|
* (last_menu_bar_item_end): New variable.Richard M. Stallman1994-04-141-21/+76
| | | | | | | | | | | | | | (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.
* (Fx_popup_menu): Use line_height field.Richard M. Stallman1994-04-091-1/+1
|
* (Fx_popup_dialog): Doc fix.Richard M. Stallman1994-04-081-3/+52
| | | | | | | (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.
* (Fx_popup_dialog): If POSITION is t, use selected frame.Richard M. Stallman1994-04-031-5/+1
|
* (Fx_popup_dialog): If POSITION is t, use selected frame.Richard M. Stallman1994-04-031-0/+9
|
* (xmenu_show): Undo part of March 11 change:Richard M. Stallman1994-04-011-2/+3
| | | | Do call lw_destroy_all_widgets at the end.
* (set_frame_menubar): New arg, first_time.Fred Pierresteguy1994-03-311-3/+6
| | | | | Don't update the menubar the first time it is created via x_window. (initialize_frame_menubar): Pass 1 to set_frame_menubar.
* (xmenu_show): Enable asynchronous events.Karl Heuer1994-03-251-1/+2
|
* (update_frame_menubar): Function renamed from update_one_frame_psheets.Fred Pierresteguy1994-03-231-3/+14
| | | | | (initialize_frame_menubar): New function. (set_frame_menubar): Call menu_bar_items when items is NIL.