Enlightenment CVS committal Author : lordchaos Project : e17 Module : proto
Dir : e17/proto/entropy/src Modified Files: entropy_core.c Log Message: * Cleanup for structure viewer * Right click for structure viewer headers to edit/delete * Core plugin destroy notify for layouts so we can save headers on shutdown =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/entropy_core.c,v retrieving revision 1.35 retrieving revision 1.36 diff -u -3 -r1.35 -r1.36 --- entropy_core.c 2 Jan 2006 22:23:04 -0000 1.35 +++ entropy_core.c 7 Jan 2006 08:21:01 -0000 1.36 @@ -265,6 +265,8 @@ entropy_plugin_layout_create = dlsym(core->layout_plugin->dl_ref, "entropy_plugin_layout_create"); layout = (*entropy_plugin_layout_create)(core); layout->plugin = core->layout_plugin; + core->layout_plugin->data = layout; + entropy_plugin_layout_main = dlsym(core->layout_plugin->dl_ref, "entropy_plugin_layout_main"); @@ -458,6 +460,14 @@ ecore_list_goto_first(core->plugin_list); while ( (plugin = ecore_list_next(core->plugin_list) )) { + void (*entropy_plugin_destroy)(void* data); + + if (plugin->type == ENTROPY_PLUGIN_GUI_LAYOUT) { + entropy_plugin_destroy = dlsym(plugin->dl_ref, "entropy_plugin_destroy"); + (*entropy_plugin_destroy)(plugin->data); + } + + entropy_free(plugin); } @@ -612,11 +622,12 @@ } else if (type == ENTROPY_PLUGIN_GUI_LAYOUT) { //printf("Found a layout manager.\n"); core->layout_plugin = entropy_plugin_layout_register(plugin); - /*Initializing..*/ entropy_plugin_init = dlsym(plugin->dl_ref, "entropy_plugin_init"); (*entropy_plugin_init)(core); + + } else if (type == ENTROPY_PLUGIN_GUI_COMPONENT) { ------------------------------------------------------- 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