Mercurial > emacs
comparison src/xterm.c @ 25101:6b42357f28f9
(x_set_toolkit_scroll_bar_thumb): Fix previous change.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 29 Jul 1999 15:09:42 +0000 |
parents | c3dc74005d22 |
children | 1c02364724aa |
comparison
equal
deleted
inserted
replaced
25100:2e3da138463f | 25101:6b42357f28f9 |
---|---|
7467 | 7467 |
7468 /* If the call to XawScrollbarSetThumb below doesn't seem to work, | 7468 /* If the call to XawScrollbarSetThumb below doesn't seem to work, |
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; |
7476 int scroll_mode = sb->scrollbar.scroll_mode; | 7482 int scroll_mode = sb->scrollbar.scroll_mode; |
7477 | 7483 |