From 5a1213ec8c191112d385e7061705f411d4d329b4 Mon Sep 17 00:00:00 2001 From: Davide Andreoli Date: Mon, 11 Jun 2012 23:25:43 +0000 Subject: [PATCH] evas only handle premul colors (note: not making any news or bp) SVN revision: 71965 --- legacy/elementary/src/lib/elc_fileselector.c | 39 ++++++++++++++++++++ legacy/elementary/src/lib/elm_map.c | 2 +- 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/legacy/elementary/src/lib/elc_fileselector.c b/legacy/elementary/src/lib/elc_fileselector.c index a13f966413..a1b48e7a1a 100644 --- a/legacy/elementary/src/lib/elc_fileselector.c +++ b/legacy/elementary/src/lib/elc_fileselector.c @@ -344,10 +344,48 @@ _ls_filter_cb(void *data, const Eina_File_Direct_Info *info) { Listing_Request *lreq = data; + struct stat st; if (info->path[info->name_start] == '.') return EINA_FALSE; + if (info->type == EINA_FILE_LNK) + { + printf("LINK: %s\n", info->path); + + //int ret = eina_file_statat(void *container, Eina_File_Direct_Info *info, Eina_Stat *buf) + + if (stat(info->path, &st)) + { + printf("stat error\n"); + return EINA_FALSE; // RIGHT ???? broken link ?? + } + + if (S_ISDIR(st.st_mode)) + { + char linkto[PATH_MAX]; + int len; + + //readlink(info->path, &linkto, sizeof(linkto)); + strncpy(&linkto, info->path, info->name_start); + if ((len = readlink(info->path, + linkto + info->name_start, + sizeof(linkto) - info->name_start - 1)) != -1) + { + linkto[info->name_start + len] = '\0'; + printf("link to dir: %s\n", linkto); + } + } + else + { + printf("link to file~: %s\n", info->path); + } + + + printf("LINK DONE\n"); + return EINA_FALSE; + } + if (lreq->sd->only_folder && info->type != EINA_FILE_DIR) return EINA_FALSE; @@ -439,6 +477,7 @@ _ls_main_cb(void *data, _signal_first(lreq); + printf("%d %s\n", info->type, info->path + info->name_start); if (info->type == EINA_FILE_DIR) itcn = ELM_DIRECTORY; else diff --git a/legacy/elementary/src/lib/elm_map.c b/legacy/elementary/src/lib/elm_map.c index 189288220c..2dafd2f08a 100644 --- a/legacy/elementary/src/lib/elm_map.c +++ b/legacy/elementary/src/lib/elm_map.c @@ -5551,7 +5551,7 @@ elm_map_overlay_polygon_add(Evas_Object *obj) overlay->c.r = 0xdc; overlay->c.g = 0x14; overlay->c.b = 0x3c; - overlay->c.a = 200; + overlay->c.a = 220; overlay->ovl = _overlay_polygon_new(wd, overlay->c); overlay->grp = _overlay_group_new(wd); wd->overlays = eina_list_append(wd->overlays, overlay);