]> granicus.if.org Git - nethack/commitdiff
missing scrollbar in X11_display_file [from Steve VanDevender]
authorcohrs <cohrs>
Sun, 3 Oct 2004 21:59:18 +0000 (21:59 +0000)
committercohrs <cohrs>
Sun, 3 Oct 2004 21:59:18 +0000 (21:59 +0000)
It appears that the Athena text widget in recent XFree86 distributions
does not properly honor the XawtextScrollWhenNeeded flag, so the text
widget created by X11_display_file() does not have a vertical scroll bar
when the text does not entirely fit in the window.  I have seen this bug
in XFree86 versions from 4.0.2 through 4.3.0.  Using XawtextScrollAlways
for the vertical scrollbar ensures it will always appear.

doc/fixes34.4
win/X11/winX.c

index 13bbef38da1088b14341d5ca6753b29eff2cf663..c801cd4b2f17f0f4b1896365a30bf5aa8be1579b 100644 (file)
@@ -62,6 +62,7 @@ unix: remove use of parentheses in nethack man page usage that confused a
        man page conversion tool
 winCE: disable processing of double-click messages if the first click
        causes map to scroll
+X11: ensure vertical scrollbar shows up in text display windows
 
 
 General New Features
index 2d2c68c905eb2e8ed33a4f3d592d43031dd44371..bfcbed426c78c85212d4bd52fbe3779644c25528 100644 (file)
@@ -1489,7 +1489,7 @@ X11_display_file(str, complain)
     XtSetArg(args[num_args], XtNscrollHorizontal,
                                XawtextScrollWhenNeeded);       num_args++;
     XtSetArg(args[num_args], XtNscrollVertical,
-                               XawtextScrollWhenNeeded);       num_args++;
+                               XawtextScrollAlways);           num_args++;
     XtSetArg(args[num_args], XtNtype, XawAsciiString);         num_args++;
     XtSetArg(args[num_args], XtNstring, textlines);            num_args++;
     XtSetArg(args[num_args], XtNdisplayCaret, False);          num_args++;