aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorJan Djärv2003-01-19 21:50:03 +0000
committerJan Djärv2003-01-19 21:50:03 +0000
commit488dd4c404eba70d48e4ee70141b8abcce2f863b (patch)
tree741ec2bb5abe963b292521e3a478e716a4ebb999 /src/keyboard.c
parent3c77dc44b8052a9bcb19486a605a861cf120b31e (diff)
downloademacs-488dd4c404eba70d48e4ee70141b8abcce2f863b.tar.gz
emacs-488dd4c404eba70d48e4ee70141b8abcce2f863b.zip
GTK version
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 9dbbda0276c..d54dcd22bc4 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -3878,7 +3878,8 @@ kbd_buffer_get_event (kbp, used_mouse_menu)
3878 XSETBUFFER (obj, current_buffer); 3878 XSETBUFFER (obj, current_buffer);
3879 kbd_fetch_ptr = event + 1; 3879 kbd_fetch_ptr = event + 1;
3880 } 3880 }
3881#if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) || defined (MAC_OS) 3881#if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) || defined (MAC_OS) \
3882 || defined (USE_GTK)
3882 else if (event->kind == MENU_BAR_ACTIVATE_EVENT) 3883 else if (event->kind == MENU_BAR_ACTIVATE_EVENT)
3883 { 3884 {
3884 kbd_fetch_ptr = event + 1; 3885 kbd_fetch_ptr = event + 1;
@@ -3985,7 +3986,8 @@ kbd_buffer_get_event (kbp, used_mouse_menu)
3985 { 3986 {
3986 obj = make_lispy_event (event); 3987 obj = make_lispy_event (event);
3987 3988
3988#if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) || defined(MAC_OS) 3989#if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) || defined(MAC_OS) \
3990 || defined (USE_GTK)
3989 /* If this was a menu selection, then set the flag to inhibit 3991 /* If this was a menu selection, then set the flag to inhibit
3990 writing to last_nonmenu_event. Don't do this if the event 3992 writing to last_nonmenu_event. Don't do this if the event
3991 we're returning is (menu-bar), though; that indicates the 3993 we're returning is (menu-bar), though; that indicates the
@@ -5048,7 +5050,7 @@ make_lispy_event (event)
5048 pixel_to_glyph_coords (f, XINT (event->x), XINT (event->y), 5050 pixel_to_glyph_coords (f, XINT (event->x), XINT (event->y),
5049 &column, &row, NULL, 1); 5051 &column, &row, NULL, 1);
5050 5052
5051#ifndef USE_X_TOOLKIT 5053#if ! defined (USE_X_TOOLKIT) && ! defined (USE_GTK)
5052 /* In the non-toolkit version, clicks on the menu bar 5054 /* In the non-toolkit version, clicks on the menu bar
5053 are ordinary button events in the event buffer. 5055 are ordinary button events in the event buffer.
5054 Distinguish them, and invoke the menu. 5056 Distinguish them, and invoke the menu.
@@ -5100,7 +5102,7 @@ make_lispy_event (event)
5100 5102
5101 return Fcons (item, Fcons (position, Qnil)); 5103 return Fcons (item, Fcons (position, Qnil));
5102 } 5104 }
5103#endif /* not USE_X_TOOLKIT */ 5105#endif /* not USE_X_TOOLKIT && not USE_GTK */
5104 5106
5105 /* Set `window' to the window under frame pixel coordinates 5107 /* Set `window' to the window under frame pixel coordinates
5106 event->x/event->y. */ 5108 event->x/event->y. */
@@ -5589,7 +5591,8 @@ make_lispy_event (event)
5589 } 5591 }
5590#endif /* HAVE_MOUSE */ 5592#endif /* HAVE_MOUSE */
5591 5593
5592#if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) || defined (MAC_OS) 5594#if defined (USE_X_TOOLKIT) || defined (HAVE_NTGUI) || defined (MAC_OS) \
5595 || defined (USE_GTK)
5593 case MENU_BAR_EVENT: 5596 case MENU_BAR_EVENT:
5594 if (EQ (event->arg, event->frame_or_window)) 5597 if (EQ (event->arg, event->frame_or_window))
5595 /* This is the prefix key. We translate this to 5598 /* This is the prefix key. We translate this to