ui/gtk/menu.c

branch
newapi
changeset 400
a1946c97de09
parent 395
b8277deb75b8
equal deleted inserted replaced
399:bb3f3fe2d5ee 400:a1946c97de09
252 252
253 ls->callback = il->callback; 253 ls->callback = il->callback;
254 ls->userdata = il->userdata; 254 ls->userdata = il->userdata;
255 255
256 UiObserver *observer = ui_observer_new((ui_callback)ui_update_menuitem_list, ls); 256 UiObserver *observer = ui_observer_new((ui_callback)ui_update_menuitem_list, ls);
257 list->observers = ui_obsvlist_add(list->observers, observer); 257 ls->list->observers = ui_obsvlist_add(ls->list->observers, observer);
258 uic_list_register_observer_destructor(obj->ctx, list, observer); 258 uic_list_register_observer_destructor(obj->ctx, ls->list, observer);
259 259
260 ui_update_menuitem_list(NULL, ls); 260 ui_update_menuitem_list(NULL, ls);
261 } 261 }
262 262
263 263

mercurial