ui/gtk/menu.c

changeset 98
16e84fac48bd
parent 95
e92c72705da4
equal deleted inserted replaced
97:5a3d27b8e6b0 98:16e84fac48bd
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