ui/gtk/menu.c

changeset 558
62aefa91ffc5
parent 553
90e38db0c755
equal deleted inserted replaced
557:e6415fd4af4b 558:62aefa91ffc5
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;

mercurial