ui/motif/menu.c

changeset 1016
ccde46662db7
parent 996
61b811c4705f
equal deleted inserted replaced
1015:b459361d98ad 1016:ccde46662db7
242 // It is possible, that the UiVar is from a global shared context, 242 // It is possible, that the UiVar is from a global shared context,
243 // used by multiple windows. To support this usecase, the list->obj 243 // used by multiple windows. To support this usecase, the list->obj
244 // binding object is a list of all connected UiActiveMenuItemList. 244 // binding object is a list of all connected UiActiveMenuItemList.
245 CxList *bindings = list->obj; 245 CxList *bindings = list->obj;
246 if(!bindings) { 246 if(!bindings) {
247 bindings = cxLinkedListCreate(ls->var->from_ctx->mp->allocator, NULL, CX_STORE_POINTERS); 247 bindings = cxLinkedListCreate(ls->var->from_ctx->mp->allocator, CX_STORE_POINTERS);
248 list->obj = bindings; 248 list->obj = bindings;
249 } 249 }
250 cxListAdd(bindings, ls); 250 cxListAdd(bindings, ls);
251 251
252 // The destruction of the toplevel obj must remove the menulist binding 252 // The destruction of the toplevel obj must remove the menulist binding

mercurial