check efreet_mime_type_icon_get()

SVN revision: 55260
This commit is contained in:
Sebastian Dransfeld 2010-12-04 13:59:37 +00:00
parent 91fcbf1f9e
commit 2f8e8a4f1a
1 changed files with 9 additions and 2 deletions

View File

@ -5,11 +5,15 @@
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/time.h> #include <sys/time.h>
#include <Ecore.h>
#define THEME "Tango"
#define SIZE 128
int int
ef_mime_cb_get(void) ef_mime_cb_get(void)
{ {
const char *mime = NULL; const char *mime = NULL, *icon;
int misses = 0, i = 0; int misses = 0, i = 0;
struct struct
{ {
@ -22,7 +26,7 @@ ef_mime_cb_get(void)
{PACKAGE_DATA_DIR"/test/sub", "inode/directory"}, {PACKAGE_DATA_DIR"/test/sub", "inode/directory"},
{NULL, NULL} {NULL, NULL}
}; };
double start;
if (!efreet_mime_init()) if (!efreet_mime_init())
{ {
@ -43,6 +47,9 @@ ef_mime_cb_get(void)
printf("Got %s as %s instead of %s\n", files[i].file, mime, files[i].mime); printf("Got %s as %s instead of %s\n", files[i].file, mime, files[i].mime);
misses ++; misses ++;
} }
start = ecore_time_get();
icon = efreet_mime_type_icon_get(files[i].mime, THEME, SIZE);
printf("mime icon: %s %s %f\n", files[i].mime, icon, ecore_time_get() - start);
} }
efreet_mime_shutdown(); efreet_mime_shutdown();