ui/common/context.c

changeset 154
8a4451fcb736
parent 150
5cee4cb5ad79
child 163
b70e2a77dea0
equal deleted inserted replaced
153:ee49d1852a5f 154:8a4451fcb736
88 UcxMapIterator i = ucx_map_iterator(docctx->vars); 88 UcxMapIterator i = ucx_map_iterator(docctx->vars);
89 UiVar *var; 89 UiVar *var;
90 UCX_MAP_FOREACH(key, var, i) { 90 UCX_MAP_FOREACH(key, var, i) {
91 UiVar *v = ucx_map_get(root->bound, key); 91 UiVar *v = ucx_map_get(root->bound, key);
92 if(v) { 92 if(v) {
93 // copy binding: after this all doc vars with names of previously 93 // copy binding: after this, all doc vars with names of previously
94 // bound variables are bound to the widgets 94 // bound variables are bound to the widgets
95 // the widgets still hold a pointer to the root ctx vars, but this 95 // the widgets still hold a pointer to the root ctx vars, but this
96 // vars have a pointer to the document variable value - confusing 96 // vars have a pointer to the document variable value - confusing
97 uic_copy_binding(v, var, TRUE); 97 uic_copy_binding(v, var, TRUE);
98 } 98 }

mercurial