279 list->obj = bindings; |
279 list->obj = bindings; |
280 } |
280 } |
281 cxListAdd(bindings, ls); |
281 cxListAdd(bindings, ls); |
282 |
282 |
283 // The destruction of the toplevel obj must remove the menulist binding |
283 // The destruction of the toplevel obj must remove the menulist binding |
284 cxMempoolRegister(obj->ctx->mp, ls, menuitem_list_remove_binding); |
284 uic_context_add_destructor(obj->ctx, menuitem_list_remove_binding, ls); |
285 |
285 |
286 ui_update_menuitem_list(ls); |
286 ui_update_menuitem_list(ls); |
287 } |
287 } |
288 |
288 |
289 ls->callback = il->callback; |
289 ls->callback = il->callback; |
593 list->obj = bindings; |
593 list->obj = bindings; |
594 } |
594 } |
595 cxListAdd(bindings, ls); |
595 cxListAdd(bindings, ls); |
596 |
596 |
597 // The destruction of the toplevel obj must remove the menulist binding |
597 // The destruction of the toplevel obj must remove the menulist binding |
598 cxMempoolRegister(obj->ctx->mp, ls, menuitem_list_remove_binding); |
598 uic_context_add_destructor(obj->ctx, menuitem_list_remove_binding, ls); |
599 |
599 |
600 ui_update_gmenu_item_list(ls); |
600 ui_update_gmenu_item_list(ls); |
601 } |
601 } |
602 |
602 |
603 ls->callback = il->callback; |
603 ls->callback = il->callback; |