diff options
| author | Gerd Moellmann | 1999-07-29 15:09:42 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-07-29 15:09:42 +0000 |
| commit | eb3935300f1a47074bbca6ccf7ac7b5810ddfc74 (patch) | |
| tree | d6a4d9f2aa83a3498730c8f3193ebe3802dd51ac /src | |
| parent | e2ee551e3b67afbd504e208b4389c55b6e9f4f57 (diff) | |
| download | emacs-eb3935300f1a47074bbca6ccf7ac7b5810ddfc74.tar.gz emacs-eb3935300f1a47074bbca6ccf7ac7b5810ddfc74.zip | |
(x_set_toolkit_scroll_bar_thumb): Fix previous change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index 6acc03e51f6..e6b03347d66 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -7469,7 +7469,13 @@ x_set_toolkit_scroll_bar_thumb (bar, portion, position, whole) | |||
| 7469 | check that your system's configuration file contains a define | 7469 | check that your system's configuration file contains a define |
| 7470 | for `NARROWPROTO'. See s/freebsd.h for an example. */ | 7470 | for `NARROWPROTO'. See s/freebsd.h for an example. */ |
| 7471 | if (NILP (bar->dragging)) | 7471 | if (NILP (bar->dragging)) |
| 7472 | XawScrollbarSetThumb (widget, top, shown); | 7472 | { |
| 7473 | float old_top, old_shown; | ||
| 7474 | XtVaGetValues (widget, XtNtopOfThumb, &old_top, XtNshown, &old_shown, | ||
| 7475 | NULL); | ||
| 7476 | if (top != old_top || shown != old_shown) | ||
| 7477 | XawScrollbarSetThumb (widget, top, shown); | ||
| 7478 | } | ||
| 7473 | else | 7479 | else |
| 7474 | { | 7480 | { |
| 7475 | ScrollbarWidget sb = (ScrollbarWidget) widget; | 7481 | ScrollbarWidget sb = (ScrollbarWidget) widget; |