diff options
| author | Gerd Moellmann | 2001-03-13 14:20:01 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-03-13 14:20:01 +0000 |
| commit | 2564ea1bab87af39d46834dec3d618869153ee60 (patch) | |
| tree | 32fc333a236a8d6a580e56e6fed623c28eed8839 /src | |
| parent | 23442ae4a3b7d359936921f3a50a8380e986d9ab (diff) | |
| download | emacs-2564ea1bab87af39d46834dec3d618869153ee60.tar.gz emacs-2564ea1bab87af39d46834dec3d618869153ee60.zip | |
[USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
SscrollBarP.h.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/xterm.c | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 0d651b834c7..8a81d0fa629 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2001-03-13 Gerd Moellmann <gerd@gnu.org> | 1 | 2001-03-13 Gerd Moellmann <gerd@gnu.org> |
| 2 | 2 | ||
| 3 | * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include | ||
| 4 | SscrollBarP.h. | ||
| 5 | |||
| 3 | * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Don't | 6 | * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Don't |
| 4 | access private scroll bar data; it's no longer necessary with | 7 | access private scroll bar data; it's no longer necessary with |
| 5 | contemporary LessTif. | 8 | contemporary LessTif. |
diff --git a/src/xterm.c b/src/xterm.c index b064426b1d5..eaecea54102 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -117,7 +117,6 @@ extern void _XEditResCheckMessages (); | |||
| 117 | #if defined USE_MOTIF | 117 | #if defined USE_MOTIF |
| 118 | #include <Xm/Xm.h> /* for LESSTIF_VERSION */ | 118 | #include <Xm/Xm.h> /* for LESSTIF_VERSION */ |
| 119 | #include <Xm/ScrollBar.h> | 119 | #include <Xm/ScrollBar.h> |
| 120 | #include <Xm/ScrollBarP.h> | ||
| 121 | #else /* !USE_MOTIF i.e. use Xaw */ | 120 | #else /* !USE_MOTIF i.e. use Xaw */ |
| 122 | 121 | ||
| 123 | #ifdef HAVE_XAW3D | 122 | #ifdef HAVE_XAW3D |
| @@ -9953,10 +9952,10 @@ XTread_socket (sd, bufp, numchars, expected) | |||
| 9953 | f = x_any_window_to_frame (dpyinfo, event.xkey.window); | 9952 | f = x_any_window_to_frame (dpyinfo, event.xkey.window); |
| 9954 | 9953 | ||
| 9955 | #if defined USE_MOTIF && defined USE_TOOLKIT_SCROLL_BARS | 9954 | #if defined USE_MOTIF && defined USE_TOOLKIT_SCROLL_BARS |
| 9956 | /* I couldn't find a way to prevent LessTif scroll bars | ||
| 9957 | from consuming key events. */ | ||
| 9958 | if (f == 0) | 9955 | if (f == 0) |
| 9959 | { | 9956 | { |
| 9957 | /* Scroll bars consume key events, but we want | ||
| 9958 | the keys to go to the scroll bar's frame. */ | ||
| 9960 | Widget widget = XtWindowToWidget (dpyinfo->display, | 9959 | Widget widget = XtWindowToWidget (dpyinfo->display, |
| 9961 | event.xkey.window); | 9960 | event.xkey.window); |
| 9962 | if (widget && XmIsScrollBar (widget)) | 9961 | if (widget && XmIsScrollBar (widget)) |