Enlightenment CVS committal Author : lordchaos Project : e17 Module : proto
Dir : e17/proto/entropy/src/plugins Modified Files: layout_etk_simple.c Log Message: * Allows drags to the top level dir =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/plugins/layout_etk_simple.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- layout_etk_simple.c 21 Feb 2006 10:45:18 -0000 1.11 +++ layout_etk_simple.c 21 Feb 2006 12:07:34 -0000 1.12 @@ -200,7 +200,8 @@ Etk_Widget* menu; char* home = strdup(getenv("HOME")); char* pos; - + char* md5; + entropy_file_listener* listener; /*Entropy related init */ layout = entropy_malloc (sizeof (entropy_gui_component_instance)); /*Create a component instance */ @@ -305,6 +306,12 @@ strcpy(file->uri_base, "file"); strcpy(file->mime_type, "file/folder"); + listener = entropy_malloc(sizeof(entropy_file_listener)); + file->md5 = md5_entropy_path_file(file->uri_base, file->path, file->filename); + listener->file = file; + listener->count = 1; + entropy_core_file_cache_add(file->md5, listener); + instance = (*structure_plugin_init)(core, layout, row,file); instance->plugin = structure; @@ -328,6 +335,13 @@ strcpy(file->uri_base, "file"); strcpy(file->mime_type, "file/folder"); + listener = entropy_malloc(sizeof(entropy_file_listener)); + file->md5 = md5_entropy_path_file(file->uri_base, file->path, file->filename); + listener->file = file; + listener->count = 1; + entropy_core_file_cache_add(file->md5, listener); + + instance = (*structure_plugin_init)(core, layout, row,file); instance->plugin = structure; /*-----------------------*/ ------------------------------------------------------- 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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs