summaryrefslogtreecommitdiff
path: root/src/examples/eio
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-03-29 00:42:10 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-03-29 13:30:55 +0900
commit2fb5cc3ad09f6aaf82b5d1131ac5ed22ed848bd4 (patch)
tree7a2c2c0371789ae4b139ebdf4a9ef60f82d324aa /src/examples/eio
parentcc2b7a10a8236e2b3cc4a25b4b4fda95e00884fc (diff)
efl_add_ref - fis to use efl_add properly with a parent.
fixes bc18b7e7ad1f8c5d587400b27fabab0865017011 and 168849e8a08966ecc284e28f64126a3a85965965
Diffstat (limited to 'src/examples/eio')
-rw-r--r--src/examples/eio/eio_sentry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/examples/eio/eio_sentry.c b/src/examples/eio/eio_sentry.c
index e604e8900d..f6b3e8ac51 100644
--- a/src/examples/eio/eio_sentry.c
+++ b/src/examples/eio/eio_sentry.c
@@ -27,7 +27,7 @@ void
27monitor_stuff(void *data) 27monitor_stuff(void *data)
28{ 28{
29 const char *path = data; 29 const char *path = data;
30 Eio_Sentry *sentry = efl_add_ref(EIO_SENTRY_CLASS, NULL); 30 Eio_Sentry *sentry = efl_add(EIO_SENTRY_CLASS, efl_main_loop_get());
31 efl_event_callback_add(sentry, EIO_SENTRY_EVENT_FILE_CREATED, (Efl_Event_Cb)&sentry_cb, NULL); 31 efl_event_callback_add(sentry, EIO_SENTRY_EVENT_FILE_CREATED, (Efl_Event_Cb)&sentry_cb, NULL);
32 32
33 printf("Starting monitoring path %s\n", path); 33 printf("Starting monitoring path %s\n", path);