51:42506e19eb6b | 52:25e5390cce41 |
---|---|
64 UiObject *current = uic_current_obj(toplevel); | 64 UiObject *current = uic_current_obj(toplevel); |
65 current->next = ctobj; | 65 current->next = ctobj; |
66 } | 66 } |
67 | 67 |
68 UiObject* uic_current_obj(UiObject *toplevel) { | 68 UiObject* uic_current_obj(UiObject *toplevel) { |
69 if(!toplevel) { | |
70 return NULL; | |
71 } | |
69 UiObject *obj = toplevel; | 72 UiObject *obj = toplevel; |
70 while(obj->next) { | 73 while(obj->next) { |
71 obj = obj->next; | 74 obj = obj->next; |
72 } | 75 } |
73 return obj; | 76 return obj; |