diff --git a/unix/slider.c b/unix/slider.c index b34fac1f..9ede700f 100644 --- a/unix/slider.c +++ b/unix/slider.c @@ -61,7 +61,7 @@ uiSlider *uiNewSlider(intmax_t min, intmax_t max) s->range = GTK_RANGE(s->widget); s->scale = GTK_SCALE(s->widget); - // TODO needed? + // ensure integers, just to be safe gtk_scale_set_digits(s->scale, 0); s->onChangedSignal = g_signal_connect(s->scale, "value-changed", G_CALLBACK(onChanged), s); diff --git a/unix/spinbox.c b/unix/spinbox.c index 16be68f9..d819c21f 100644 --- a/unix/spinbox.c +++ b/unix/spinbox.c @@ -62,7 +62,7 @@ uiSpinbox *uiNewSpinbox(intmax_t min, intmax_t max) s->entry = GTK_ENTRY(s->widget); s->spinButton = GTK_SPIN_BUTTON(s->widget); - // TODO needed? + // ensure integers, just to be safe gtk_spin_button_set_digits(s->spinButton, 0); s->onChangedSignal = g_signal_connect(s->spinButton, "value-changed", G_CALLBACK(onChanged), s);