thumbs - add more mime types that can thumbnail and have e_thumb do it right
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Fri, 22 Nov 2013 09:26:21 +0000 (18:26 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Fri, 22 Nov 2013 09:26:21 +0000 (18:26 +0900)
config/mobile/e.src
config/standard/e.src
src/bin/e_thumb_main.c

index a60c517..abd6883 100644 (file)
@@ -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 {
index d834c8a..0c70043 100644 (file)
@@ -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 {
index 148e294..bbaa1b7 100644 (file)
@@ -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);