better fix
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit
This commit is contained in:
parent
732b47a300
commit
f7df6df342
2 changed files with 7 additions and 4 deletions
|
|
@ -576,10 +576,11 @@ void MwSetInteger(MwWidget handle, const char* key, int n) {
|
||||||
arrput(keys, NULL);
|
arrput(keys, NULL);
|
||||||
MwDispatch3(handle, props_change, keys);
|
MwDispatch3(handle, props_change, keys);
|
||||||
arrfree(keys);
|
arrfree(keys);
|
||||||
|
|
||||||
|
MwDispatch3(handle, prop_change, key);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(handle->parent != NULL && handle->parent->prop_event) {
|
if(handle->parent != NULL && handle->parent->prop_event) {
|
||||||
MwDispatch3(handle, prop_change, key);
|
|
||||||
if(handle->parent != NULL) MwDispatch4(handle->parent, children_prop_change, handle, key);
|
if(handle->parent != NULL) MwDispatch4(handle->parent, children_prop_change, handle, key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -624,10 +625,11 @@ void MwSetText(MwWidget handle, const char* key, const char* value) {
|
||||||
arrput(keys, NULL);
|
arrput(keys, NULL);
|
||||||
MwDispatch3(handle, props_change, keys);
|
MwDispatch3(handle, props_change, keys);
|
||||||
arrfree(keys);
|
arrfree(keys);
|
||||||
|
|
||||||
|
MwDispatch3(handle, prop_change, key);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(handle->parent != NULL && handle->parent->prop_event) {
|
if(handle->parent != NULL && handle->parent->prop_event) {
|
||||||
MwDispatch3(handle, prop_change, key);
|
|
||||||
if(handle->parent != NULL) MwDispatch4(handle->parent, children_prop_change, handle, key);
|
if(handle->parent != NULL) MwDispatch4(handle->parent, children_prop_change, handle, key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -655,10 +657,11 @@ void MwSetVoid(MwWidget handle, const char* key, void* value) {
|
||||||
arrput(keys, NULL);
|
arrput(keys, NULL);
|
||||||
MwDispatch3(handle, props_change, keys);
|
MwDispatch3(handle, props_change, keys);
|
||||||
arrfree(keys);
|
arrfree(keys);
|
||||||
|
|
||||||
|
MwDispatch3(handle, prop_change, key);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(handle->parent != NULL && handle->parent->prop_event) {
|
if(handle->parent != NULL && handle->parent->prop_event) {
|
||||||
MwDispatch3(handle, prop_change, key);
|
|
||||||
if(handle->parent != NULL) MwDispatch4(handle->parent, children_prop_change, handle, key);
|
if(handle->parent != NULL) MwDispatch4(handle->parent, children_prop_change, handle, key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -401,7 +401,7 @@ static void draw(MwWidget handle) {
|
||||||
|
|
||||||
static void prop_change(MwWidget handle, const char* prop) {
|
static void prop_change(MwWidget handle, const char* prop) {
|
||||||
MwListBox lb = handle->internal;
|
MwListBox lb = handle->internal;
|
||||||
if(strcmp(prop, MwNleftPadding) == 0 && lb->frame != NULL) {
|
if(strcmp(prop, MwNleftPadding) == 0) {
|
||||||
MwForceRender(lb->frame);
|
MwForceRender(lb->frame);
|
||||||
}
|
}
|
||||||
if(strcmp(prop, MwNhasHeading) == 0) {
|
if(strcmp(prop, MwNhasHeading) == 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue