More TODO resolution.
This commit is contained in:
parent
d1fd35d240
commit
b57221772f
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue