This commit is contained in:
Angelo Haller 2021-01-02 10:21:41 -05:00 committed by GitHub
commit ffb412e13b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -61,6 +61,9 @@ uiSlider *uiNewSlider(int min, int max)
s->range = GTK_RANGE(s->widget);
s->scale = GTK_SCALE(s->widget);
// do not display current value
gtk_scale_set_draw_value(s->scale, 0);
// ensure integers, just to be safe
gtk_scale_set_digits(s->scale, 0);