ui/common/object.c

changeset 1047
acb5352a2038
parent 1046
94df16a7fff2
equal deleted inserted replaced
1046:94df16a7fff2 1047:acb5352a2038
59 objcallback cb = { func, userdata }; 59 objcallback cb = { func, userdata };
60 cxListAdd(destruction_callbacks, &cb); 60 cxListAdd(destruction_callbacks, &cb);
61 } 61 }
62 62
63 UiObject* ui_dummy_object(void) { 63 UiObject* ui_dummy_object(void) {
64 return uic_object_new_toplevel(); 64 UiObject *obj = uic_object_new_toplevel();
65 obj->ref = 1;
66 return obj;
65 } 67 }
66 68
67 void uic_object_created(UiObject *obj) { 69 void uic_object_created(UiObject *obj) {
68 CxIterator i = cxListIterator(creation_callbacks); 70 CxIterator i = cxListIterator(creation_callbacks);
69 cx_foreach(objcallback *, cb, i) { 71 cx_foreach(objcallback *, cb, i) {

mercurial