aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-11-02 09:34:28 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-11-02 09:34:28 +0000
commite020a07e58d45119b398c6dd8b7b541bc1adfbb8 (patch)
treedaeb6a63f9c141ea5f676a30f6edf4089c6fac0d /src
parentfilepreview now uses preview as container for video previews (diff)
downloadenlightenment-e020a07e58d45119b398c6dd8b7b541bc1adfbb8.tar.gz
filepreview now works with gifs
SVN revision: 78846
Diffstat (limited to 'src')
-rw-r--r--src/bin/e_widget_filepreview.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bin/e_widget_filepreview.c b/src/bin/e_widget_filepreview.c
index a35ba59d5..172042156 100644
--- a/src/bin/e_widget_filepreview.c
+++ b/src/bin/e_widget_filepreview.c
@@ -132,7 +132,13 @@ _e_wid_fprev_img_update(E_Widget_Data *wd, const char *path, const char *key)
{
if (!path) return;
if (wd->is_dir || wd->is_txt) return;
- e_widget_preview_thumb_set(wd->o_preview_preview, path, key, wd->w, wd->h);
+ if (eina_str_has_extension(path, ".gif"))
+ {
+ e_widget_preview_file_set(wd->o_preview_preview, path, key);
+ _e_wid_fprev_preview_update(wd, wd->o_preview_preview, NULL);
+ }
+ else
+ e_widget_preview_thumb_set(wd->o_preview_preview, path, key, wd->w, wd->h);
}
static void