Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src


Modified Files:
        entropy_core.c 


Log Message:
* Oops - this assumed plugins would be loaded in a specific order.  Fixed now

===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/entropy_core.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -3 -r1.34 -r1.35
--- entropy_core.c      2 Jan 2006 22:01:59 -0000       1.34
+++ entropy_core.c      2 Jan 2006 22:23:04 -0000       1.35
@@ -216,6 +216,20 @@
                 entropy_plugin_load(core, plugin);
         }
 
+
+       /*Now register all thumbnailers with the distribution plugin*/
+       {
+               char* mime= NULL;
+               Ecore_List* keys = 
ecore_hash_keys(core->entropy_thumbnailers_child);
+
+               ecore_list_goto_first(keys);
+               while ( (mime = ecore_list_remove_first(keys))) {
+                       ecore_hash_set(core->entropy_thumbnailers, mime, 
distrib_plugin);
+               }
+       }
+
+       
+
        //printf("\n\nDetails of thumbnailers:\n");
 
         /*Show some details*/
@@ -677,7 +691,6 @@
         ecore_list_goto_first(mime_types);
         while ( (mime_type = ecore_list_next(mime_types)) ) {
                if (type == THUMBNAILER_DISTRIBUTION) { 
-                       ecore_hash_set(core->entropy_thumbnailers, mime_type, 
plugin);
                        distrib_plugin = plugin;
                } else if (type == THUMBNAILER_CHILD) {
                        Ecore_List* list = NULL;
@@ -693,7 +706,6 @@
                         * This is a pretty big jump - but *generally* you'll 
only have one distribution plugin
                         * FIXME - maybe.
                         */
-                       ecore_hash_set(core->entropy_thumbnailers, mime_type, 
distrib_plugin);
                }
         }
 




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to