summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/eio_examples.dox12
-rw-r--r--src/examples/eio/eio_file_ls.c2
2 files changed, 7 insertions, 7 deletions
diff --git a/doc/eio_examples.dox b/doc/eio_examples.dox
index 4b7c1ede75..587cb39cce 100644
--- a/doc/eio_examples.dox
+++ b/doc/eio_examples.dox
@@ -181,17 +181,17 @@
181 * 181 *
182 * To use eio_file_ls(), you just need to define four callbacks: 182 * To use eio_file_ls(), you just need to define four callbacks:
183 * 183 *
184 * @li The filter callback, which allow or not a file to be seen 184 * @li The filter callback, which allows a file to be seen (or not)
185 * by the main loop handler. This callback run in a separated thread. 185 * by the main loop handler. This callback runs in a separate thread.
186 * @li The main callback, which receive in the main loop all the file 186 * @li The main callback, which receive in the main loop all the file
187 * that are allowed by the filter. If you are updating a user interface 187 * that are allowed by the filter. If you are updating a user interface
188 * it make sense to delay the insertion a little, so you get a chance 188 * it makes sense to delay the insertion a little, so you get a chance
189 * to update the canvas for a bunch of file instead of one by one. 189 * to update the canvas for a bunch of files instead of one by one.
190 * @li The end callback, which is called in the main loop when the 190 * @li The end callback, which is called in the main loop when the
191 * content of the directory has been correctly scanned and all the 191 * content of the directory has been correctly scanned and all the
192 * file notified to the main loop. 192 * file notified to the main loop.
193 * @li The error callback, which is called if an error occurred or 193 * @li The error callback, which is called if an error occurred or
194 * if the listing was cancelled during it's run. You can then retrieve 194 * if the listing was cancelled during its run. You can then retrieve
195 * the error type as an errno error. 195 * the error type as an errno error.
196 * 196 *
197 * Here is a simple example: 197 * Here is a simple example:
@@ -288,7 +288,7 @@
288 * if( type == EIO_MONITOR_FILE_MODIFIED ) 288 * if( type == EIO_MONITOR_FILE_MODIFIED )
289 * printf("is being modified"); 289 * printf("is being modified");
290 * else if( type == EIO_MONITOR_FILE_CLOSED ) 290 * else if( type == EIO_MONITOR_FILE_CLOSED )
291 * printf("is not more being modified"); 291 * printf("is no longer being modified");
292 * else printf("got unexpected changes"); 292 * else printf("got unexpected changes");
293 * printf("\n"); 293 * printf("\n");
294 * } 294 * }
diff --git a/src/examples/eio/eio_file_ls.c b/src/examples/eio/eio_file_ls.c
index a9315ff90e..93e6c7a774 100644
--- a/src/examples/eio/eio_file_ls.c
+++ b/src/examples/eio/eio_file_ls.c
@@ -43,7 +43,7 @@ _done_cb(void *data, Eio_File *handler EINA_UNUSED)
43static void 43static void
44_error_cb(void *data EINA_UNUSED, Eio_File *handler EINA_UNUSED, int error) 44_error_cb(void *data EINA_UNUSED, Eio_File *handler EINA_UNUSED, int error)
45{ 45{
46 fprintf(stderr, "Something wrong has happend:%s\n", strerror(error)); 46 fprintf(stderr, "Something has gone wrong:%s\n", strerror(error));
47 ecore_main_loop_quit(); 47 ecore_main_loop_quit();
48} 48}
49 49