remove MwMessageBoxDestroy, introduce destroy_inject
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
20d1a455e7
commit
a59154d5f1
9 changed files with 22 additions and 22 deletions
|
|
@ -200,6 +200,7 @@ MwWidget MwCreateWidget(MwClass widget_class, const char* name, MwWidget parent,
|
|||
h->destroy_queue = NULL;
|
||||
h->prop_event = 1;
|
||||
h->draw_inject = NULL;
|
||||
h->destroy_inject = NULL;
|
||||
h->tick_list = NULL;
|
||||
h->destroyed = 0;
|
||||
h->bgcolor = NULL;
|
||||
|
|
@ -317,6 +318,7 @@ static void MwFreeWidget(MwWidget handle) {
|
|||
|
||||
handle->destroyed = 0;
|
||||
MwDispatch(handle, destroy);
|
||||
if(handle->destroy_inject != NULL) handle->destroy_inject(handle);
|
||||
|
||||
for(i = 0; i < arrlen(handle->children); i++) {
|
||||
MwFreeWidget(handle->children[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue