ui/common/context.c

branch
newapi
changeset 420
28a5920bebe0
parent 406
0ebf9d7b23e8
equal deleted inserted replaced
419:7d15cad351fc 420:28a5920bebe0
98 UiContext *var_ctx = ctx; 98 UiContext *var_ctx = ctx;
99 while(var_ctx) { 99 while(var_ctx) {
100 if(var_ctx->vars_unbound && cxMapSize(var_ctx->vars_unbound) > 0) { 100 if(var_ctx->vars_unbound && cxMapSize(var_ctx->vars_unbound) > 0) {
101 CxIterator i = cxMapIterator(var_ctx->vars_unbound); 101 CxIterator i = cxMapIterator(var_ctx->vars_unbound);
102 cx_foreach(CxMapEntry*, entry, i) { 102 cx_foreach(CxMapEntry*, entry, i) {
103 printf("attach %s\n", entry->key->data);
103 UiVar *var = entry->value; 104 UiVar *var = entry->value;
104 UiVar *docvar = cxMapGet(doc_ctx->vars, *entry->key); 105 UiVar *docvar = cxMapGet(doc_ctx->vars, *entry->key);
105 if(docvar) { 106 if(docvar) {
106 // bind var to document var 107 // bind var to document var
107 uic_copy_binding(var, docvar, TRUE); 108 uic_copy_binding(var, docvar, TRUE);

mercurial