jaehyun pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=2b40c0a170eb426e061eaa4822ac3e8b819b38db
commit 2b40c0a170eb426e061eaa4822ac3e8b819b38db Author: Jaehyun Cho <[email protected]> Date: Sat May 14 19:39:15 2016 +0900 file_browser: Fix to display refresh button only on workspace. Previously, refresh button is displayed on all directories. Now, refresh button is displayed only on workspace directory. --- src/bin/file_browser.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bin/file_browser.c b/src/bin/file_browser.c index 4f1c312..70e4085 100644 --- a/src/bin/file_browser.c +++ b/src/bin/file_browser.c @@ -104,6 +104,9 @@ gl_file_text_get_cb(void *data, Evas_Object *obj EINA_UNUSED, static Evas_Object * gl_file_content_get_cb(void *data, Evas_Object *obj, const char *part) { + brows_data *bd = g_bd; + if (!bd) return NULL; + brows_file *file = data; if (!strcmp(part, "elm.swallow.icon")) @@ -128,9 +131,7 @@ gl_file_content_get_cb(void *data, Evas_Object *obj, const char *part) else { //Refresh button for the most top directory - if ((file->type == FILE_BROWSER_FILE_TYPE_DIR) && - !elm_genlist_item_parent_get(file->it) && - !strcmp(part, "elm.swallow.end")) + if (file == bd->workspace && !strcmp(part, "elm.swallow.end")) { //This wrapper box is used for non-scaled button tooltip. Evas_Object *box = elm_box_add(obj); --
