Mercurial > emacs
changeset 15602:9aa89ea71d5b
(lw_motif_menu_related_event_p): A predicate to identify keyboard events
intended only for menus.
author | Miles Bader <miles@gnu.org> |
---|---|
date | Thu, 04 Jul 1996 05:46:24 +0000 |
parents | 39f72de374b9 |
children | d0d30042bdc4 |
files | lwlib/lwlib-Xm.c |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lwlib/lwlib-Xm.c Thu Jul 04 05:46:22 1996 +0000 +++ b/lwlib/lwlib-Xm.c Thu Jul 04 05:46:24 1996 +0000 @@ -119,6 +119,18 @@ } Boolean +lw_motif_menu_related_event_p (event) + XEvent event; +{ + Widget widget = XtWindowToWidget (event.xkey.display,event.xkey.window); + WidgetClass class = XtClass (widget); + return + class == xmMainWindowWidgetClass + || class == xmRowColumnWidgetClass + || class == xmMenuShellWidgetClass; +} + +Boolean lw_motif_widget_p (widget) Widget widget; {