Enlightenment CVS committal

Author  : englebass
Project : e17
Module  : libs/efreet

Dir     : e17/libs/efreet/src/bin


Modified Files:
        ef_cache.c 


Log Message:
search for mime

===================================================================
RCS file: /cvs/e/e17/libs/efreet/src/bin/ef_cache.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ef_cache.c  25 Mar 2007 16:17:19 -0000      1.3
+++ ef_cache.c  25 Mar 2007 18:17:34 -0000      1.4
@@ -4,6 +4,7 @@
 static int
 timer(void *data)
 {
+    Ecore_List *list;
     Efreet_Desktop *desktop;
     double start;
 
@@ -16,6 +17,17 @@
     start = ecore_time_get();
     desktop = efreet_util_desktop_wm_class_find("Mozilla-firefox-bin", NULL);
     printf("Mozilla-firefox-bin: %p %.3f\n", desktop, (ecore_time_get() - 
start));
+
+    list = efreet_util_desktop_mime_list("application/ogg");
+    if (list)
+    {
+        ecore_list_goto_first(list);
+        while ((desktop = ecore_list_next(list)))
+        {
+            printf("application/ogg: %s\n", desktop->name);
+        }
+        ecore_list_destroy(list);
+    }
 
     return 0;
 }



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to