changeset 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 2e3da138463f
children 9577da2078c9
files src/xterm.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Thu Jul 29 11:01:50 1999 +0000
+++ b/src/xterm.c	Thu Jul 29 15:09:42 1999 +0000
@@ -7469,7 +7469,13 @@
        check that your system's configuration file contains a define
        for `NARROWPROTO'.  See s/freebsd.h for an example.  */
     if (NILP (bar->dragging))
-      XawScrollbarSetThumb (widget, top, shown);
+      {
+	float old_top, old_shown;
+	XtVaGetValues (widget, XtNtopOfThumb, &old_top, XtNshown, &old_shown,
+		       NULL);
+	if (top != old_top || shown != old_shown)
+	  XawScrollbarSetThumb (widget, top, shown);
+      }
     else
       {
 	ScrollbarWidget sb = (ScrollbarWidget) widget;