Mercurial > emacs
comparison src/keyboard.c @ 9228:2ac31fc0facb
(make_lispy_event): Do not set item. Now handled in xmenu.c by
(popup_get_selection).
author | Paul Reilly <pmr@pajato.com> |
---|---|
date | Sun, 02 Oct 1994 12:26:46 +0000 |
parents | fa3883c219ea |
children | 0a0998c4d4b6 |
comparison
equal
deleted
inserted
replaced
9227:968bb25ec1af | 9228:2ac31fc0facb |
---|---|
2660 up event comes in before the menu code can deal with it, | 2660 up event comes in before the menu code can deal with it, |
2661 just ignore it. */ | 2661 just ignore it. */ |
2662 if (! (event->modifiers & down_modifier)) | 2662 if (! (event->modifiers & down_modifier)) |
2663 return Qnil; | 2663 return Qnil; |
2664 | 2664 |
2665 #ifdef USE_X_TOOLKIT | 2665 #ifndef USE_X_TOOLKIT |
2666 /* The click happened in the menubar. | |
2667 Look for the menu item selected. */ | |
2668 item = map_event_to_object (event, f); | |
2669 | |
2670 XFASTINT (event->y) = 1; | |
2671 #else /* not USE_X_TOOLKIT */ | |
2672 item = Qnil; | 2666 item = Qnil; |
2673 items = FRAME_MENU_BAR_ITEMS (f); | 2667 items = FRAME_MENU_BAR_ITEMS (f); |
2674 for (i = 0; i < XVECTOR (items)->size; i += 3) | 2668 for (i = 0; i < XVECTOR (items)->size; i += 3) |
2675 { | 2669 { |
2676 Lisp_Object pos, string; | 2670 Lisp_Object pos, string; |