Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src


Modified Files:
        entropy_core.c 


Log Message:
* Support removal of mime<->apps bindings.  Edit coming soon

===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/entropy_core.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -3 -r1.79 -r1.80
--- entropy_core.c      12 Apr 2006 11:47:04 -0000      1.79
+++ entropy_core.c      14 Apr 2006 02:20:17 -0000      1.80
@@ -370,6 +370,22 @@
 
 }
 
+void entropy_core_mime_action_remove_app(char* mime_type, 
Entropy_Config_Mime_Binding_Action* action)
+{
+       Entropy_Config_Mime_Binding* binding;
+       Evas_List* l;
+
+       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)) {
+                       binding->actions = evas_list_remove(binding->actions, 
action);
+               }
+               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