More TODO resolution.

This commit is contained in:
Pietro Gagliardi 2015-06-05 16:52:21 -04:00
parent d1fd35d240
commit b57221772f
3 changed files with 4 additions and 3 deletions

View File

@ -267,8 +267,6 @@ static void boxDelete(uiBox *ss, uintmax_t index)
struct boxControl *bc;
uiControl *removed;
// TODO rearrange this
// TODO sync call order with that of Destroy()
bc = ptrArrayIndex(b->controls, struct boxControl *, index);
removed = bc->c;
ptrArrayDelete(b->controls, index);

View File

@ -158,7 +158,7 @@ func NewGroup(text *const char) *Group;
// spinbox/slider rules:
// setting value outside of range will automatically clamp
// initial value is minimum
// TODO what happens if max > min? max == min?
// complaint if min >= max?
interface Spinbox from Control {
func Value(void) intmax_t;

View File

@ -218,6 +218,9 @@ uiSpinbox *uiNewSpinbox(intmax_t min, intmax_t max)
{
struct spinbox *s;
if (min >= max)
complain("error: min >= max in uiNewSpinbox()");
s = (struct spinbox *) uiNewControl(uiTypeSpinbox());
s->hwnd = uiWindowsUtilCreateControlHWND(WS_EX_CLIENTEDGE,