aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog8
-rw-r--r--src/xterm.c4
2 files changed, 10 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8622adbf0ce..67c100600fa 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12012-05-31 Paul Eggert <eggert@cs.ucla.edu>
2
3 Pacify gcc -Wdouble-precision when using Xaw.
4 * xterm.c (xaw_jump_callback, x_set_toolkit_scroll_bar_thumb)
5 [HAVE_X_WINDOWS && USE_TOOLKIT_SCROLL_BARS && !USE_MOTIF && !USE_GTK]:
6 Use 'float' consistently, rather than 'float' in most places
7 and 'double' in a couple of places.
8
12012-05-31 Eli Zaretskii <eliz@gnu.org> 92012-05-31 Eli Zaretskii <eliz@gnu.org>
2 10
3 * xdisp.c (handle_stop): Detect whether we have overlay strings 11 * xdisp.c (handle_stop): Detect whether we have overlay strings
diff --git a/src/xterm.c b/src/xterm.c
index 81726917efa..3c7a7efdd71 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -4529,7 +4529,7 @@ xaw_jump_callback (Widget widget, XtPointer client_data, XtPointer call_data)
4529 whole = 10000000; 4529 whole = 10000000;
4530 portion = shown < 1 ? top * whole : 0; 4530 portion = shown < 1 ? top * whole : 0;
4531 4531
4532 if (shown < 1 && (eabs (top + shown - 1) < 1.0/height)) 4532 if (shown < 1 && (eabs (top + shown - 1) < 1.0f / height))
4533 /* Some derivatives of Xaw refuse to shrink the thumb when you reach 4533 /* Some derivatives of Xaw refuse to shrink the thumb when you reach
4534 the bottom, so we force the scrolling whenever we see that we're 4534 the bottom, so we force the scrolling whenever we see that we're
4535 too close to the bottom (in x_set_toolkit_scroll_bar_thumb 4535 too close to the bottom (in x_set_toolkit_scroll_bar_thumb
@@ -4894,7 +4894,7 @@ x_set_toolkit_scroll_bar_thumb (struct scroll_bar *bar, int portion, int positio
4894 else 4894 else
4895 top = old_top; 4895 top = old_top;
4896 /* Keep two pixels available for moving the thumb down. */ 4896 /* Keep two pixels available for moving the thumb down. */
4897 shown = max (0, min (1 - top - (2.0 / height), shown)); 4897 shown = max (0, min (1 - top - (2.0f / height), shown));
4898 4898
4899 /* If the call to XawScrollbarSetThumb below doesn't seem to work, 4899 /* If the call to XawScrollbarSetThumb below doesn't seem to work,
4900 check that your system's configuration file contains a define 4900 check that your system's configuration file contains a define