struct scroll_bar *bar = client_data;
float *top_addr = call_data;
double top = *top_addr;
- float shown;
+ double shown;
int whole, portion, height, width;
enum scroll_bar_part part;
bool horizontal = bar->horizontal;
-
if (horizontal)
{
/* Get the size of the thumb, a value between 0 and 1. */
}
{
- float old_top, old_shown;
+ double old_top, old_shown;
Dimension height;
+
XtVaGetValues (widget,
XtNtopOfThumb, &old_top,
XtNshown, &old_shown,
/* If the call to XawScrollbarSetThumb below doesn't seem to
work, check that 'NARROWPROTO' is defined in src/config.h.
If this is not so, most likely you need to fix configure. */
- float ftop = top, fshown = shown;
+ double ftop = top, fshown = shown;
+
if (ftop != old_top || fshown != old_shown)
{
if (bar->dragging == -1)