Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src


Modified Files:
        entropy_core.c 


Log Message:
* Add ability to delete mimee types

===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/entropy_core.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -3 -r1.74 -r1.75
--- entropy_core.c      5 Apr 2006 04:38:29 -0000       1.74
+++ entropy_core.c      5 Apr 2006 11:25:09 -0000       1.75
@@ -349,6 +349,26 @@
        ecore_list_append(list, handler);
 }
 
+void entropy_core_mime_action_remove(char* mime_type)
+{
+       Entropy_Config_Mime_Binding* binding;
+       Evas_List* l;
+       int found = 0;
+
+       for (l = core_core->config->Loaded_Config->mime_bindings; l; ) {
+               binding = l->data;
+
+               /*FIXME: This leaks a binding*/
+               if (!strcmp(binding->mime_type, mime_type)) {
+                       printf("Removing binding '%s'...\n", mime_type);
+                       core_core->config->Loaded_Config->mime_bindings = 
+                               
evas_list_remove(core_core->config->Loaded_Config->mime_bindings, binding);
+               }
+               l = l->next;
+       }
+
+}
+
 void entropy_core_mime_action_add(char* mime_type, char* desc) 
 {
        Entropy_Config_Mime_Binding* binding;




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to