Richard M. Stallman
0869c141aa
(xmenu_show): Use size_byte of strings.
1998-01-09 23:21:17 +00:00
Richard M. Stallman
a45bad2a88
(free_frame_menubar): Clear menubar_height field.
1997-08-30 07:15:19 +00:00
Richard M. Stallman
a7ebd44378
(Fx_popup_menu): Do fix.
1997-05-09 21:47:48 +00:00
Richard M. Stallman
0b1cf3999d
(set_frame_menubar): When widget is new, forget records of old contents.
1997-04-25 00:44:48 +00:00
Karl Heuer
99d3fac764
(Fx_popup_menu): Don't use Lisp_Object as integer.
...
(set_frame_menubar): Likewise.
1997-04-10 21:19:16 +00:00
Richard M. Stallman
98381e4289
(single_keymap_panes): New arg DEPTH.
...
Cut off recursion at that depth. Callers changed.
1996-12-26 21:06:19 +00:00
Richard M. Stallman
7935c7387b
(set_frame_menubar): Call Fmatch_data with new explicit arguments.
1996-12-19 06:42:08 +00:00
Richard M. Stallman
bfc524bcad
(Vmenu_updating_frame): New variable.
...
(syms_of_xmenu): Set up Lisp var.
(Fx_popup_menu, set_frame_menubar): Initialize it.
1996-12-10 23:25:14 +00:00
Richard M. Stallman
4f9ad01661
(Fx_popup_menu): Give the menu a title when the menu is a single keymap.
1996-10-09 04:56:48 +00:00
Richard M. Stallman
f42aa681fa
(set_frame_menubar): Don't add ibw to menubar_size.
1996-08-27 13:40:40 +00:00
Richard M. Stallman
86e71abf77
(xdialog_show): Don't allow 9 buttons.
1996-08-24 21:24:45 +00:00
Richard M. Stallman
c8b5aa3de3
(xmenu_show): Set dummy.state.
...
Set dummy.button appropriately.
(popup_get_selection) [USE_MOTIF]: Set event.xbutton.button.
1996-08-08 17:12:46 +00:00
Richard M. Stallman
a9be683969
(pending_menu_activation): Don't initialize. Not static.
...
(set_frame_menubar): If no saved_menu_event yet, set deep_p.
Don't clear pending_menu_activation here.
(Fx_popup_dialog): Don't fail to initialize WINDOW.
1996-07-31 16:54:23 +00:00
Richard M. Stallman
faf8a408ee
Comment change.
1996-07-28 00:48:42 +00:00
Richard M. Stallman
745c34fbba
(pending_menu_activation): New variable.
...
(x_activate_menubar): Don't call set_frame_menubar for
ButtonRelease events. Instead, set pending_menu_activation.
(set_frame_menubar): If pending_menu_activation, set deep_p.
1996-07-27 20:28:55 +00:00
Richard M. Stallman
fe8fa62fb6
(set_frame_menubar): Use -1 for call_data
...
in the deep_p = 0 case.
1996-07-25 08:50:26 +00:00
Karl Heuer
ac78b14441
(x_activate_menubar): Allow any event, not just ButtonPress.
1996-07-16 06:01:13 +00:00
Karl Heuer
1062400578
(popup_get_selection): For a ButtonRelease on the proper
...
display, don't queue it, and always deactivate the menu.
1996-07-07 22:46:15 +00:00
Richard M. Stallman
67385caa0e
(Qmenu_alias): New variable.
...
(syms_of_xmenu): Initialize it.
(menu_item_equiv_key): Check this property on the definition.
1996-06-13 21:04:29 +00:00
Richard M. Stallman
846e8c10a0
(single_submenu): Handle non-keymap lists like symbols.
1996-05-31 20:10:02 +00:00
Richard M. Stallman
f04366cb45
(set_frame_menubar): FRAME_MENU_BAR_ITEMS now has four elements per item.
1996-04-29 15:29:52 +00:00
Richard M. Stallman
1e659e4c3a
Put most of file into HAVE_MENUS conditional.
...
(Fx_popup_menu): Put parts into HAVE_MENUS conditionals.
1996-03-03 22:47:53 +00:00
Richard M. Stallman
f9655c60ab
(xmalloc_widget_value): Define only if USE_X_TOOLKIT.
1996-02-12 10:05:00 +00:00
Richard M. Stallman
36457345c7
(xmalloc_widget_value): Fix previous change.
1996-02-11 23:44:54 +00:00
Richard M. Stallman
f7fab165d0
(xmalloc_widget_value): New function.
...
Use it instead of malloc_widget_value.
1996-02-11 20:31:53 +00:00
Karl Heuer
a57634d46c
(set_frame_menubar):
...
Use safe_run_hooks for Qmenu_bar_update_hook.
1996-01-24 23:38:23 +00:00
Erik Naggum
3b7ad313e0
Update FSF's address in the preamble.
1996-01-15 09:18:04 +00:00
Karl Heuer
8e6208c5d2
Comment fixes.
1996-01-05 10:03:17 +00:00
Richard M. Stallman
f56e7ad2ac
Comment change.
1995-12-23 07:17:48 +00:00
Richard M. Stallman
62555c22ca
(set_frame_menubar): When called with deep_p == 0,
...
that invalidates the previous f->menu_bar_vector.
1995-11-26 20:50:52 +00:00
Richard M. Stallman
5ee80bd3d0
Don't include Xaw/Paned.h unless USE_LUCID is defined.
...
(set_frame_menubar): Conditionalized some code on USE_LUCID that
depends on the fact that the parent widget of the menu bar is an Xaw
"Paned" widget.
1995-11-10 18:55:48 +00:00
Richard M. Stallman
d31d42cc68
(popup_get_selection): Pop menu down if button is pressed
...
outside the menu.
(xmenu_show): Ignore `quote' when looking up the result.
1995-09-24 23:33:06 +00:00
Richard M. Stallman
ffcb5a5127
[USE_X_TOOLKIT] (xmenu_show): Compute root-based
...
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 @.
1995-08-02 08:17:20 +00:00
Karl Heuer
54e9e9537a
Do renamings:
...
frame->display => frame->output, struct x_display -> struct x_output.
1995-07-26 00:04:12 +00:00
Richard M. Stallman
7556890b58
Renamings: frame->display => frame->output, struct x_display -> sruct x_output.
1995-07-25 21:55:50 +00:00
Richard M. Stallman
88766961a3
Include buffer.h.
...
(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.
1995-07-25 20:26:10 +00:00
Richard M. Stallman
8d8a349485
(set_frame_menubar): If the Lisp-level menu bar menus
...
are unchanged, don't recompute the widgets.
1995-07-21 08:31:15 +00:00
Richard M. Stallman
0314aacb41
(syms_of_xmenu): Set up Qdebug_on_next_call.
...
(set_frame_menubar): Bind it to nil.
1995-07-21 02:05:20 +00:00
Richard M. Stallman
71dca3e3da
(single_submenu): Handle commands appearing directly in the menu bar.
1995-06-29 18:43:24 +00:00
Richard M. Stallman
37a985474f
(menu_item_enabled_p_1): Special handling for quit.
...
(set_frame_menubar): Inhibit quitting.
1995-06-22 19:25:20 +00:00
Richard M. Stallman
8fbc986d86
(menu_item_equiv_key): Do reconsider a command that had
...
no equivalent before, if it is in Vdefine_key_rebound_commands.
1995-06-17 23:48:10 +00:00
Karl Heuer
8a44285875
(frame_vector_add_frame): Don't forget to store
...
the longer vector.
1995-06-12 00:55:33 +00:00
Karl Heuer
21af8a68c8
(xmenu_show): Do call lw_destroy_all_widgets.
...
(xdialog_show): Likewise.
(popup_get_selection): Don't call it here.
1995-06-09 01:11:36 +00:00
Karl Heuer
f1df80a88f
(xmenu_show): If !HAVE_X_WINDOWS, don't reference X display.
1995-06-08 19:14:45 +00:00
Karl Heuer
4bcdbab193
(set_frame_menubar): Always call update_frame_menubar.
1995-05-30 18:46:49 +00:00
Karl Heuer
2e2b8e220e
(popup_get_selection): Force deactivation if key pressed.
...
New arg `id'.
(xdialog_show, xmenu_show): Pass new arg to popup_get_selection.
1995-05-26 22:47:07 +00:00
Karl Heuer
cc17e9bf31
(xmenu_show, xdialog_show): Increment widget_id_tick
...
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.
1995-05-25 16:01:12 +00:00
Karl Heuer
88d4f6ec12
(Fx_popup_dialog): Treat (menu-bar) like t, for POSITION.
1995-05-24 21:43:00 +00:00
Karl Heuer
1d1c15673e
(set_frame_menubar): Set menubar_height field.
1995-05-24 04:42:52 +00:00
Karl Heuer
c63f695277
(xmenu_show, menubar_selection_callback): Move declaration
...
of entry to an outer block, to guarantee its value is preserved.
1995-05-02 04:50:07 +00:00