From 7ccf40fc7bc2ae3fc9048c4323dd007d9a81c377 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Fri, 22 Nov 2013 18:26:21 +0900 Subject: [PATCH] thumbs - add more mime types that can thumbnail and have e_thumb do it right --- config/mobile/e.src | 44 ++++++++++++++++++++++++++++++++++++++++++++ config/standard/e.src | 44 ++++++++++++++++++++++++++++++++++++++++++++ src/bin/e_thumb_main.c | 6 +++--- 3 files changed, 91 insertions(+), 3 deletions(-) diff --git a/config/mobile/e.src b/config/mobile/e.src index a60c517..abd6883 100644 --- a/config/mobile/e.src +++ b/config/mobile/e.src @@ -816,6 +816,50 @@ group "E_Config" struct { value "mime" string: "application/x-desktop"; value "icon" string: "DESKTOP"; } + group "E_Config_Mime_Icon" struct { + value "mime" string: "application/vnd.oasis.opendocument.presentation"; + value "icon" string: "THUMB"; + } + group "E_Config_Mime_Icon" struct { + value "mime" string: "application/vnd.ms-excel"; + value "icon" string: "THUMB"; + } + group "E_Config_Mime_Icon" struct { + value "mime" string: "application/vnd.ms-powerpoint"; + value "icon" string: "THUMB"; + } + group "E_Config_Mime_Icon" struct { + value "mime" string: "application/vnd.ms-word"; + value "icon" string: "THUMB"; + } + group "E_Config_Mime_Icon" struct { + value "mime" string: "application/vnd.oasis.opendocument.spreadsheet"; + value "icon" string: "THUMB"; + } + group "E_Config_Mime_Icon" struct { + value "mime" string: "application/vnd.oasis.opendocument.text"; + value "icon" string: "THUMB"; + } + group "E_Config_Mime_Icon" struct { + value "mime" string: "application/vnd.openxmlformats-officedocument.presentationml.presentation"; + value "icon" string: "THUMB"; + } + group "E_Config_Mime_Icon" struct { + value "mime" string: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; + value "icon" string: "THUMB"; + } + group "E_Config_Mime_Icon" struct { + value "mime" string: "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; + value "icon" string: "THUMB"; + } + group "E_Config_Mime_Icon" struct { + value "mime" string: "text/richtext"; + value "icon" string: "THUMB"; + } + group "E_Config_Mime_Icon" struct { + value "mime" string: "application/msword"; + value "icon" string: "THUMB"; + } } group "xkb.used_layouts" list { group "E_Config_XKB_Layout" struct { diff --git a/config/standard/e.src b/config/standard/e.src index d834c8a..0c70043 100644 --- a/config/standard/e.src +++ b/config/standard/e.src @@ -548,6 +548,50 @@ group "E_Config" struct { value "mime" string: "application/x-desktop"; value "icon" string: "DESKTOP"; } + group "E_Config_Mime_Icon" struct { + value "mime" string: "application/vnd.oasis.opendocument.presentation"; + value "icon" string: "THUMB"; + } + group "E_Config_Mime_Icon" struct { + value "mime" string: "application/vnd.ms-excel"; + value "icon" string: "THUMB"; + } + group "E_Config_Mime_Icon" struct { + value "mime" string: "application/vnd.ms-powerpoint"; + value "icon" string: "THUMB"; + } + group "E_Config_Mime_Icon" struct { + value "mime" string: "application/vnd.ms-word"; + value "icon" string: "THUMB"; + } + group "E_Config_Mime_Icon" struct { + value "mime" string: "application/vnd.oasis.opendocument.spreadsheet"; + value "icon" string: "THUMB"; + } + group "E_Config_Mime_Icon" struct { + value "mime" string: "application/vnd.oasis.opendocument.text"; + value "icon" string: "THUMB"; + } + group "E_Config_Mime_Icon" struct { + value "mime" string: "application/vnd.openxmlformats-officedocument.presentationml.presentation"; + value "icon" string: "THUMB"; + } + group "E_Config_Mime_Icon" struct { + value "mime" string: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; + value "icon" string: "THUMB"; + } + group "E_Config_Mime_Icon" struct { + value "mime" string: "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; + value "icon" string: "THUMB"; + } + group "E_Config_Mime_Icon" struct { + value "mime" string: "text/richtext"; + value "icon" string: "THUMB"; + } + group "E_Config_Mime_Icon" struct { + value "mime" string: "application/msword"; + value "icon" string: "THUMB"; + } } group "shelves" list { group "E_Config_Shelf" struct { diff --git a/src/bin/e_thumb_main.c b/src/bin/e_thumb_main.c index 148e294..bbaa1b7 100644 --- a/src/bin/e_thumb_main.c +++ b/src/bin/e_thumb_main.c @@ -420,7 +420,7 @@ _e_thumb_generate(E_Thumb *eth) evas_object_resize(im2, tw, th); evas_object_show(im2); } - else if (evas_object_image_extension_can_load_get(ext)) + else// if (evas_object_image_extension_can_load_get(ext)) { im = evas_object_image_add(evas); evas_object_image_load_size_set(im, eth->w, eth->h); @@ -443,8 +443,8 @@ _e_thumb_generate(E_Thumb *eth) evas_object_resize(im, ww, hh); sortkey = EINA_TRUE; } - else - goto end; +// else +// goto end; ecore_evas_alpha_set(ee, alpha); ecore_evas_resize(ee, ww, hh); -- 2.7.4