From: Hyoyoung Chang <hyoyoung@gmail.com>
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 26 Jun 2011 04:56:47 +0000 (04:56 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 26 Jun 2011 04:56:47 +0000 (04:56 +0000)
Subject: [E-devel] [patch] elementary - elc_fileselector
Date: Sun, 26 Jun 2011 11:55:55 +0900

Dear elementary developers

When I compiled svn elementary, it seems a define(HAVE_EIO) is omitted.
I sending a patch, check about it please.

Thanks.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@60697 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elc_fileselector.c

index 0f0d242..cbe2f1b 100644 (file)
@@ -141,7 +141,9 @@ _del_hook(Evas_Object *obj)
    wd = elm_widget_data_get(obj);
    if (!wd) return;
 
+#ifdef HAVE_EIO
    eio_file_cancel(wd->current);
+#endif
 
    wd->files_list = NULL;
    wd->files_grid = NULL;
@@ -678,7 +680,9 @@ _done_cb(void *data, Eio_File *handler __UNUSED__)
 
    _signal_first(wr);
 
+#ifdef HAVE_EIO
    wr->wd->current = NULL;
+#endif
    _widget_request_cleanup(wr);
 }
 
@@ -687,8 +691,10 @@ _error_cb(void *data, Eio_File *handler, int error __UNUSED__)
 {
    Widget_Request *wr = data;
 
+#ifdef HAVE_EIO
    if (wr->wd->current == handler)
      wr->wd->current = NULL;
+#endif
    _widget_request_cleanup(wr);
 }