1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 03:40:56 -08:00
Commit graph

92 commits

Author SHA1 Message Date
Karl Heuer
b5bb2705dc (menu_item_enabled_p, single_keymap_panes, Fx_popup_menu, Fx_popup_dialog):
Use type test macros.
1994-09-27 00:27:58 +00:00
Karl Heuer
0f5e911dc8 (menu_item_enabled_p): Fix declaration. 1994-09-17 03:16:16 +00:00
Richard M. Stallman
62010a73d8 Include puresize.h.
(menu_item_equiv_key): Use CHECK_IMPURE.
1994-09-14 23:24:45 +00:00
Richard M. Stallman
03b78673fb (xmenu_show): Don't queue events that are in the menu bar. 1994-08-28 07:39:12 +00:00
Richard M. Stallman
c4669f1411 (xmenu_show): Do nothing special for ButtonPress in the menu.
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.
1994-08-25 05:05:50 +00:00
Richard M. Stallman
9f9e1ff837 (xmenu_show): Unconditionally update x_mouse_grabbed and Vmouse_depressed. 1994-08-14 00:42:40 +00:00
Richard M. Stallman
60f312e2fc (xmenu_show): Ignore any geometry resource from the user. 1994-08-01 21:29:46 +00:00
Richard M. Stallman
f22aa61700 [USE_X_TOOLKIT] (xmenu_show): Handle UnmapNotify events. 1994-07-17 06:41:53 +00:00
Richard M. Stallman
575b5b9a19 (xmenu_show): Don't call XtUngrabPointer here. 1994-07-12 01:39:30 +00:00
Richard M. Stallman
a51b963cea (xmenu_show) {USE_X_TOOLKIT}: ButtonPress no longer pops
down; instead it forces the next ButtonRelease to exit.  Don't
dispatch on ButtonPress events.
1994-07-07 19:24:56 +00:00
Richard M. Stallman
5511b56859 (xmenu_show) [USE_X_TOOLKIT]: Keyboard input exits the menu.
ButtonRelease does so if within Vdouble_click_time.
Ignore mouse motion if button was already released.
(menu_item_selection): Declare volatile, if __STDC__.
1994-07-07 06:29:09 +00:00
Richard M. Stallman
8c512fcb00 (single_keymap_panes): Put menu_item_equiv_key in the gcpro.
(menu_item_equiv_key): GCPRO things.
1994-06-21 19:12:12 +00:00
Richard M. Stallman
565620a54d Put stdio.h after config.h. 1994-06-15 03:54:06 +00:00
Karl Heuer
bc28c44019 (single_keymap_panes): gcpro some things. 1994-06-13 20:56:30 +00:00
Richard M. Stallman
9a6e04e5b0 (xmenu_show): Don't call XMenuDestroy twice in XM_FAILURE case. 1994-06-11 20:11:36 +00:00
Richard M. Stallman
cc1032b3f3 (menu_item_equiv_key): Check whether def1 matches
un-aliased command name as well as given command name.
1994-06-07 18:31:56 +00:00
Karl Heuer
b558721531 (xdialog_show): Fix problem with message in dialog box. 1994-06-02 23:47:26 +00:00
Richard M. Stallman
10bba2660f (menu_item_equiv_key): Look for equiv keys both before
and after one stage of symbol function indirection.
1994-05-25 09:20:10 +00:00
Richard M. Stallman
948c852a5f (other_menu_bar_item_p): Return 0 if no menu bar. 1994-05-19 15:49:52 +00:00
Richard M. Stallman
f70e9e1e64 (xmenu_show): Don't look in menubar for core.height if no menu bar. 1994-05-19 05:56:21 +00:00
Richard M. Stallman
78c8278d36 (xmenu_show): Completely ignore nameless panes
except for the first pane.  Ignore named panes too if KEYMAPS.
1994-05-17 04:30:32 +00:00
Fred Pierresteguy
adb0462ca4 (xmenu_show): New var mb_item. Use it to determine the menubar item that
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.
1994-05-11 09:33:15 +00:00
Richard M. Stallman
78ffb0db33 (string_width): Deleted. 1994-05-11 09:03:02 +00:00
Karl Heuer
742f715d96 (xmenu_show): Disallow empty menus. 1994-05-05 06:31:28 +00:00
Karl Heuer
b137c5822b (Fx_popup_menu): Restore accidentally-deleted call to mouse_position_hook. 1994-05-05 05:36:17 +00:00
Richard M. Stallman
a5285df359 (xdialog_show): Clear x_mouse_grabbed. 1994-04-29 23:45:17 +00:00
Richard M. Stallman
748a0e1f83 (Fx_popup_menu): Doc fix. 1994-04-28 18:55:14 +00:00
Richard M. Stallman
d9209dee0a (xmenu_show, xdialog_show):
If we unread some events, set interrupt_input_pending.
1994-04-27 08:27:50 +00:00
Richard M. Stallman
e48087b7e2 (xmenu_show): Fix typo in last change. 1994-04-17 07:50:32 +00:00
Richard M. Stallman
5964e45066 (xmenu_show): Don't cons on subprefix_stck[j] if nil. 1994-04-16 03:50:38 +00:00
Richard M. Stallman
4e8d35499a (last_menu_bar_item_end): New variable.
(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.
1994-04-14 17:14:57 +00:00
Richard M. Stallman
a8097b6ca4 (Fx_popup_menu): Use line_height field. 1994-04-09 06:32:17 +00:00
Richard M. Stallman
fcaa766567 (Fx_popup_dialog): Doc fix.
(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.
1994-04-08 05:52:00 +00:00
Richard M. Stallman
5a7d50bac0 (Fx_popup_dialog): If POSITION is t, use selected frame. 1994-04-03 19:43:01 +00:00
Richard M. Stallman
b14db4d73b (Fx_popup_dialog): If POSITION is t, use selected frame. 1994-04-03 19:03:23 +00:00
Richard M. Stallman
a9c90b7c24 (xmenu_show): Undo part of March 11 change:
Do call lw_destroy_all_widgets at the end.
1994-04-01 10:10:45 +00:00
Fred Pierresteguy
706aa2f2e7 (set_frame_menubar): New arg, first_time.
Don't update the menubar the first time it is created via x_window.
(initialize_frame_menubar): Pass 1 to set_frame_menubar.
1994-03-31 14:50:46 +00:00
Karl Heuer
121e45555c (xmenu_show): Enable asynchronous events. 1994-03-25 03:34:45 +00:00
Fred Pierresteguy
6af6cbb530 (update_frame_menubar): Function renamed from update_one_frame_psheets.
(initialize_frame_menubar): New function.
(set_frame_menubar): Call menu_bar_items when items is NIL.
1994-03-23 18:23:32 +00:00
Richard M. Stallman
99fe880dc3 (xdialog_show): Delete args x, y.
(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.
1994-03-20 07:05:38 +00:00
Richard M. Stallman
80670155d2 (Fx_popup_dialog): Don't fail to set X, Y from POSITION.
(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.
1994-03-19 10:31:57 +00:00
Richard M. Stallman
540e52d1a9 (Fx_popup_dialog, Fx_popup_menu): Require 2 args. 1994-03-19 05:34:45 +00:00
Richard M. Stallman
2436c02909 (list_of_items): Arg to push_menu_item was missing. 1994-03-18 06:57:36 +00:00
Richard M. Stallman
5ca2ef64f0 (Fx_popup_dialog, Fx_popup_menu): Handle case where
mouse_position_hook doesn't store anything.
1994-03-18 01:27:43 +00:00
Richard M. Stallman
392d3f4b27 Undo previous change. Instead:
(Fx_popup_dialog) [! USE_X_TOOLKIT]: Call Fx_popup_menu.
1994-03-14 00:18:52 +00:00
Richard M. Stallman
7464b1311d (Fx_popup_dialog): Define only if USE_X_TOOLKIT. 1994-03-14 00:08:07 +00:00
Fred Pierresteguy
165e1749b2 (xdialog_show): New function to handle the display of dialog boxes.
(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.
1994-03-11 18:01:00 +00:00
Richard M. Stallman
101bb4a553 (Fx_popup_menu): If POSITION is nil,
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.
1994-03-10 17:03:21 +00:00
Fred Pierresteguy
cffa74ea6c (update_one_frame_psheets): Call EmacsFrameSetCharSize to
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.
1994-03-04 09:30:58 +00:00
Roland McGrath
6f3e8e346c [USE_X_TOOLKIT] (xmenu_show): Pass display to XtWindowToWidget. 1994-03-04 07:52:34 +00:00