wlt: toolkit: add wlt_window_get_eloop() helper
authorDavid Herrmann <dh.herrmann@googlemail.com>
Wed, 26 Sep 2012 19:38:00 +0000 (21:38 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Wed, 26 Sep 2012 19:38:00 +0000 (21:38 +0200)
commit27fa6c3310ce3ae7800b834ba107e8e80132c194
tree866c708d924b7af187b9a71bddeb0ffc2ef0c575
parent89cb239fce77d248eb320f495d3c583f8aba1419
wlt: toolkit: add wlt_window_get_eloop() helper

This helper allows widgets to retrieve the eloop that is used by the
window. Otherwise, we couldn't dispatch events there.
No refcounting is needed as all widgets are destroyed before the window is
destroyed. Other users need to perform ref-counting by themself.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/wlt_toolkit.c
src/wlt_toolkit.h