ui/common/context.c

changeset 1216
c9702a6d7306
parent 1215
00515f6dbbd7
equal deleted inserted replaced
1215:00515f6dbbd7 1216:c9702a6d7306
134 cx_foreach(UiDestroyHandler *, h, i) { 134 cx_foreach(UiDestroyHandler *, h, i) {
135 h->destructor(h->data); 135 h->destructor(h->data);
136 } 136 }
137 137
138 uic_context_detach_all(ctx); 138 uic_context_detach_all(ctx);
139 139
140 cxMempoolFree(ctx->mp); 140 cxMempoolFree(ctx->mp);
141 } 141 }
142 142
143 void uic_context_update_bindings(UiContext *ctx) { 143 void uic_context_update_bindings(UiContext *ctx) {
144 int onchange_enabled = ui_onchange_events_is_enabled(); 144 int onchange_enabled = ui_onchange_events_is_enabled();
279 279
280 // detach documents 280 // detach documents
281 i = cxListIterator(ls); 281 i = cxListIterator(ls);
282 cx_foreach(void *, doc, i) { 282 cx_foreach(void *, doc, i) {
283 uic_context_detach_document(ctx, doc); 283 uic_context_detach_document(ctx, doc);
284 uic_send_status_change(ui_document_context(doc), NULL);
285 } 284 }
286 285
287 cxListFree(ls); 286 cxListFree(ls);
288 ui_update_action_bindings(ctx); 287 ui_update_action_bindings(ctx);
289 } 288 }

mercurial