X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=driver%2Fdemo-Gtk-conf.c;h=d41b58577c2c524ca8429e8261660c3b70bdc063;hp=262e88eb5aa641c4a2ea2ceb3e94c4d02b996a4c;hb=488f2fa8fbdbc77e91a70da2962d73af49e6cace;hpb=c8c6deae79b408cffbc88043c766b3bc12cf0f13 diff --git a/driver/demo-Gtk-conf.c b/driver/demo-Gtk-conf.c index 262e88eb..d41b5857 100644 --- a/driver/demo-Gtk-conf.c +++ b/driver/demo-Gtk-conf.c @@ -749,6 +749,7 @@ make_adjustment (const char *filename, parameter *p) : p->value); gfloat si = (p->high - p->low) / 100; gfloat pi = (p->high - p->low) / 10; + gfloat page_size = ((p->type == SLIDER) ? 1 : 0); if (p->value < p->low || p->value > p->high) { @@ -786,8 +787,8 @@ make_adjustment (const char *filename, parameter *p) return GTK_ADJUSTMENT (gtk_adjustment_new (value, p->low, - p->high + 1, - si, pi, 1)); + p->high + page_size, + si, pi, page_size)); }