41:394f3b06dba1 | 42:29b2821d1262 |
---|---|
199 if(item->callback) { | 199 if(item->callback) { |
200 UiEventData *event = ucx_mempool_malloc( | 200 UiEventData *event = ucx_mempool_malloc( |
201 obj->ctx->mempool, | 201 obj->ctx->mempool, |
202 sizeof(UiEventData)); | 202 sizeof(UiEventData)); |
203 event->obj = obj; | 203 event->obj = obj; |
204 event->user_data = item->userdata; | 204 event->userdata = item->userdata; |
205 event->callback = item->callback; | 205 event->callback = item->callback; |
206 | 206 |
207 g_signal_connect( | 207 g_signal_connect( |
208 button, | 208 button, |
209 "clicked", | 209 "clicked", |
228 if(item->callback) { | 228 if(item->callback) { |
229 UiEventData *event = ucx_mempool_malloc( | 229 UiEventData *event = ucx_mempool_malloc( |
230 obj->ctx->mempool, | 230 obj->ctx->mempool, |
231 sizeof(UiEventData)); | 231 sizeof(UiEventData)); |
232 event->obj = obj; | 232 event->obj = obj; |
233 event->user_data = item->userdata; | 233 event->userdata = item->userdata; |
234 event->callback = item->callback; | 234 event->callback = item->callback; |
235 | 235 |
236 g_signal_connect( | 236 g_signal_connect( |
237 button, | 237 button, |
238 "clicked", | 238 "clicked", |
262 if(item->callback) { | 262 if(item->callback) { |
263 UiEventData *event = ucx_mempool_malloc( | 263 UiEventData *event = ucx_mempool_malloc( |
264 obj->ctx->mempool, | 264 obj->ctx->mempool, |
265 sizeof(UiEventData)); | 265 sizeof(UiEventData)); |
266 event->obj = obj; | 266 event->obj = obj; |
267 event->user_data = item->userdata; | 267 event->userdata = item->userdata; |
268 event->callback = item->callback; | 268 event->callback = item->callback; |
269 | 269 |
270 g_signal_connect( | 270 g_signal_connect( |
271 button, | 271 button, |
272 "toggled", | 272 "toggled", |
288 if(item->callback) { | 288 if(item->callback) { |
289 UiEventData *event = ucx_mempool_malloc( | 289 UiEventData *event = ucx_mempool_malloc( |
290 obj->ctx->mempool, | 290 obj->ctx->mempool, |
291 sizeof(UiEventData)); | 291 sizeof(UiEventData)); |
292 event->obj = obj; | 292 event->obj = obj; |
293 event->user_data = item->userdata; | 293 event->userdata = item->userdata; |
294 event->callback = item->callback; | 294 event->callback = item->callback; |
295 | 295 |
296 g_signal_connect( | 296 g_signal_connect( |
297 button, | 297 button, |
298 "toggled", | 298 "toggled", |