diff options
| author | Paul Eggert | 2011-04-16 09:44:58 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-16 09:44:58 -0700 |
| commit | dda3aeddcbf2dbfb9c517b093726703fa5c24800 (patch) | |
| tree | 28e26d1f138a5e97e0e078ec21db33b269483517 /src | |
| parent | 748945cc8b8c7898e922f0e658f60dc4994e43ef (diff) | |
| download | emacs-dda3aeddcbf2dbfb9c517b093726703fa5c24800.tar.gz emacs-dda3aeddcbf2dbfb9c517b093726703fa5c24800.zip | |
* xterm.c (x_dispatch_event): More accurate ifdefs.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/xterm.c | 4 | ||||
| -rw-r--r-- | src/xterm.h | 2 |
3 files changed, 6 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index cb3ef75a3aa..f3b7c185444 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -6,12 +6,10 @@ | |||
| 6 | 6 | ||
| 7 | * xterm.c: Fix problems found by static analysis with other toolkits. | 7 | * xterm.c: Fix problems found by static analysis with other toolkits. |
| 8 | (toolkit_scroll_bar_interaction): Define and use only if USE_X_TOOLKIT. | 8 | (toolkit_scroll_bar_interaction): Define and use only if USE_X_TOOLKIT. |
| 9 | (x_dispatch_event): Declare static only if !USE_GTK && USE_X_TOOLKIT. | 9 | (x_dispatch_event): Declare static if USE_GTK, and |
| 10 | Define if USE_GTK || (HAVE_MENUS && USE_X_TOOLKIT); USE_MOTIF need | 10 | define if USE_GTK || USE_X_TOOLKIT. |
| 11 | not be part of this test. | ||
| 12 | (SET_SAVED_BUTTON_EVENT): Define only if USE_X_TOOLKIT || USE_GTK. | 11 | (SET_SAVED_BUTTON_EVENT): Define only if USE_X_TOOLKIT || USE_GTK. |
| 13 | * xterm.h (x_dispatch_event): Use USE_GTK, not USE_MOTIF, when testing | 12 | * xterm.h (x_dispatch_event): Extern only if USE_X_TOOLKIT. |
| 14 | whether to declare. | ||
| 15 | * xterm.c, xterm.h (x_mouse_leave): Bring this function back, but only if | 13 | * xterm.c, xterm.h (x_mouse_leave): Bring this function back, but only if |
| 16 | defined HAVE_MENUS && !defined USE_X_TOOLKIT && !defined USE_GTK. | 14 | defined HAVE_MENUS && !defined USE_X_TOOLKIT && !defined USE_GTK. |
| 17 | 15 | ||
diff --git a/src/xterm.c b/src/xterm.c index 74eff795ee4..42aca334769 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -349,7 +349,7 @@ static void x_check_expected_move (struct frame *, int, int); | |||
| 349 | static void x_sync_with_move (struct frame *, int, int, int); | 349 | static void x_sync_with_move (struct frame *, int, int, int); |
| 350 | static int handle_one_xevent (struct x_display_info *, XEvent *, | 350 | static int handle_one_xevent (struct x_display_info *, XEvent *, |
| 351 | int *, struct input_event *); | 351 | int *, struct input_event *); |
| 352 | #if !defined USE_GTK && defined USE_X_TOOLKIT | 352 | #ifdef USE_GTK |
| 353 | static int x_dispatch_event (XEvent *, Display *); | 353 | static int x_dispatch_event (XEvent *, Display *); |
| 354 | #endif | 354 | #endif |
| 355 | /* Don't declare this NO_RETURN because we want no | 355 | /* Don't declare this NO_RETURN because we want no |
| @@ -6977,7 +6977,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, XEvent *eventptr, | |||
| 6977 | return count; | 6977 | return count; |
| 6978 | } | 6978 | } |
| 6979 | 6979 | ||
| 6980 | #if defined USE_GTK || (defined HAVE_MENUS && defined USE_X_TOOLKIT) | 6980 | #if defined USE_GTK || defined USE_X_TOOLKIT |
| 6981 | 6981 | ||
| 6982 | /* Handles the XEvent EVENT on display DISPLAY. | 6982 | /* Handles the XEvent EVENT on display DISPLAY. |
| 6983 | This is used for event loops outside the normal event handling, | 6983 | This is used for event loops outside the normal event handling, |
diff --git a/src/xterm.h b/src/xterm.h index 787dd41ec4a..fbd638fe73b 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -986,7 +986,7 @@ extern void x_clear_area (Display *, Window, int, int, int, int, int); | |||
| 986 | extern void x_mouse_leave (struct x_display_info *); | 986 | extern void x_mouse_leave (struct x_display_info *); |
| 987 | #endif | 987 | #endif |
| 988 | 988 | ||
| 989 | #if defined USE_GTK || defined USE_X_TOOLKIT | 989 | #ifdef USE_X_TOOLKIT |
| 990 | extern int x_dispatch_event (XEvent *, Display *); | 990 | extern int x_dispatch_event (XEvent *, Display *); |
| 991 | #endif | 991 | #endif |
| 992 | extern unsigned int x_x_to_emacs_modifiers (struct x_display_info *, | 992 | extern unsigned int x_x_to_emacs_modifiers (struct x_display_info *, |