summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-11-22 18:26:21 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-11-22 18:26:21 +0900
commit7ccf40fc7bc2ae3fc9048c4323dd007d9a81c377 (patch)
tree5c2af7274b14e377683d38e1d9d18b30dcc8073a
parente3b65f1cbbd2d4a4d9b2ac2f4394974d01322d8c (diff)
thumbs - add more mime types that can thumbnail and have e_thumb do it right
-rw-r--r--config/mobile/e.src44
-rw-r--r--config/standard/e.src44
-rw-r--r--src/bin/e_thumb_main.c6
3 files changed, 91 insertions, 3 deletions
diff --git a/config/mobile/e.src b/config/mobile/e.src
index a60c51705..abd68838b 100644
--- a/config/mobile/e.src
+++ b/config/mobile/e.src
@@ -816,6 +816,50 @@ group "E_Config" struct {
816 value "mime" string: "application/x-desktop"; 816 value "mime" string: "application/x-desktop";
817 value "icon" string: "DESKTOP"; 817 value "icon" string: "DESKTOP";
818 } 818 }
819 group "E_Config_Mime_Icon" struct {
820 value "mime" string: "application/vnd.oasis.opendocument.presentation";
821 value "icon" string: "THUMB";
822 }
823 group "E_Config_Mime_Icon" struct {
824 value "mime" string: "application/vnd.ms-excel";
825 value "icon" string: "THUMB";
826 }
827 group "E_Config_Mime_Icon" struct {
828 value "mime" string: "application/vnd.ms-powerpoint";
829 value "icon" string: "THUMB";
830 }
831 group "E_Config_Mime_Icon" struct {
832 value "mime" string: "application/vnd.ms-word";
833 value "icon" string: "THUMB";
834 }
835 group "E_Config_Mime_Icon" struct {
836 value "mime" string: "application/vnd.oasis.opendocument.spreadsheet";
837 value "icon" string: "THUMB";
838 }
839 group "E_Config_Mime_Icon" struct {
840 value "mime" string: "application/vnd.oasis.opendocument.text";
841 value "icon" string: "THUMB";
842 }
843 group "E_Config_Mime_Icon" struct {
844 value "mime" string: "application/vnd.openxmlformats-officedocument.presentationml.presentation";
845 value "icon" string: "THUMB";
846 }
847 group "E_Config_Mime_Icon" struct {
848 value "mime" string: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
849 value "icon" string: "THUMB";
850 }
851 group "E_Config_Mime_Icon" struct {
852 value "mime" string: "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
853 value "icon" string: "THUMB";
854 }
855 group "E_Config_Mime_Icon" struct {
856 value "mime" string: "text/richtext";
857 value "icon" string: "THUMB";
858 }
859 group "E_Config_Mime_Icon" struct {
860 value "mime" string: "application/msword";
861 value "icon" string: "THUMB";
862 }
819 } 863 }
820 group "xkb.used_layouts" list { 864 group "xkb.used_layouts" list {
821 group "E_Config_XKB_Layout" struct { 865 group "E_Config_XKB_Layout" struct {
diff --git a/config/standard/e.src b/config/standard/e.src
index d834c8a28..0c70043cb 100644
--- a/config/standard/e.src
+++ b/config/standard/e.src
@@ -548,6 +548,50 @@ group "E_Config" struct {
548 value "mime" string: "application/x-desktop"; 548 value "mime" string: "application/x-desktop";
549 value "icon" string: "DESKTOP"; 549 value "icon" string: "DESKTOP";
550 } 550 }
551 group "E_Config_Mime_Icon" struct {
552 value "mime" string: "application/vnd.oasis.opendocument.presentation";
553 value "icon" string: "THUMB";
554 }
555 group "E_Config_Mime_Icon" struct {
556 value "mime" string: "application/vnd.ms-excel";
557 value "icon" string: "THUMB";
558 }
559 group "E_Config_Mime_Icon" struct {
560 value "mime" string: "application/vnd.ms-powerpoint";
561 value "icon" string: "THUMB";
562 }
563 group "E_Config_Mime_Icon" struct {
564 value "mime" string: "application/vnd.ms-word";
565 value "icon" string: "THUMB";
566 }
567 group "E_Config_Mime_Icon" struct {
568 value "mime" string: "application/vnd.oasis.opendocument.spreadsheet";
569 value "icon" string: "THUMB";
570 }
571 group "E_Config_Mime_Icon" struct {
572 value "mime" string: "application/vnd.oasis.opendocument.text";
573 value "icon" string: "THUMB";
574 }
575 group "E_Config_Mime_Icon" struct {
576 value "mime" string: "application/vnd.openxmlformats-officedocument.presentationml.presentation";
577 value "icon" string: "THUMB";
578 }
579 group "E_Config_Mime_Icon" struct {
580 value "mime" string: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
581 value "icon" string: "THUMB";
582 }
583 group "E_Config_Mime_Icon" struct {
584 value "mime" string: "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
585 value "icon" string: "THUMB";
586 }
587 group "E_Config_Mime_Icon" struct {
588 value "mime" string: "text/richtext";
589 value "icon" string: "THUMB";
590 }
591 group "E_Config_Mime_Icon" struct {
592 value "mime" string: "application/msword";
593 value "icon" string: "THUMB";
594 }
551 } 595 }
552 group "shelves" list { 596 group "shelves" list {
553 group "E_Config_Shelf" struct { 597 group "E_Config_Shelf" struct {
diff --git a/src/bin/e_thumb_main.c b/src/bin/e_thumb_main.c
index 148e29465..bbaa1b7d9 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)
420 evas_object_resize(im2, tw, th); 420 evas_object_resize(im2, tw, th);
421 evas_object_show(im2); 421 evas_object_show(im2);
422 } 422 }
423 else if (evas_object_image_extension_can_load_get(ext)) 423 else// if (evas_object_image_extension_can_load_get(ext))
424 { 424 {
425 im = evas_object_image_add(evas); 425 im = evas_object_image_add(evas);
426 evas_object_image_load_size_set(im, eth->w, eth->h); 426 evas_object_image_load_size_set(im, eth->w, eth->h);
@@ -443,8 +443,8 @@ _e_thumb_generate(E_Thumb *eth)
443 evas_object_resize(im, ww, hh); 443 evas_object_resize(im, ww, hh);
444 sortkey = EINA_TRUE; 444 sortkey = EINA_TRUE;
445 } 445 }
446 else 446// else
447 goto end; 447// goto end;
448 448
449 ecore_evas_alpha_set(ee, alpha); 449 ecore_evas_alpha_set(ee, alpha);
450 ecore_evas_resize(ee, ww, hh); 450 ecore_evas_resize(ee, ww, hh);