More TODO resolution.

This commit is contained in:
Pietro Gagliardi 2016-05-23 00:41:56 -04:00
parent 399af0319c
commit e3bcf31764
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);