Fix menu bar activation with click for Motif/Lesstif.
authorJan D <jan.h.d@swipnet.se>
Wed, 14 Jul 2010 14:32:25 +0000 (16:32 +0200)
committerJan D <jan.h.d@swipnet.se>
Wed, 14 Jul 2010 14:32:25 +0000 (16:32 +0200)
commitcf28cebc2e93dbd2cd0e6eb2f1a9543a015a1235
treef342da6952fb8e6e523fff9ef43f26fa2a641088
parentebd3d6afa42948e3fb136583f12f9f72e7830ec5
Fix menu bar activation with click for Motif/Lesstif.

* src/xdisp.c (pending_menu_activation): Remove extern declaration.
(prepare_menu_bars): Remove setting of pending_menu_activation.

* src/xmenu.c (pending_menu_activation): Remove.
(x_activate_menubar): Set popup_activated_flag for Xt also. Remove
setting of pending_menu_activation.
(set_frame_menubar): Remove check of pending_menu_activation.
Declare menubar_size before code.  Correct spelling in comment.

* src/xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
(SET_SAVED_KEY_EVENT): Remove (not used).
(SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
remove size parameter.
(handle_one_xevent): Check popup_activated () for menu for Xt also.
Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
ButtonRelease.
src/ChangeLog
src/xdisp.c
src/xmenu.c
src/xterm.c