finally fix
This commit is contained in:
parent
ce80f70332
commit
14cf131528
1 changed files with 5 additions and 1 deletions
|
|
@ -374,7 +374,11 @@ void MwSetText(MwWidget handle, const char* key, const char* value) {
|
||||||
|
|
||||||
if(shgeti(handle->text, key) != -1) free(shget(handle->text, key));
|
if(shgeti(handle->text, key) != -1) free(shget(handle->text, key));
|
||||||
|
|
||||||
if(value != NULL) shput(handle->text, key, v);
|
if(value != NULL){
|
||||||
|
shput(handle->text, key, v);
|
||||||
|
}else{
|
||||||
|
shdel(handle->text, key);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(handle->prop_event) MwDispatch3(handle, prop_change, key);
|
if(handle->prop_event) MwDispatch3(handle, prop_change, key);
|
||||||
if(value != NULL && strcmp(key, MwNbackground) == 0) {
|
if(value != NULL && strcmp(key, MwNbackground) == 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue