Enlightenment CVS committal Author : chaos Project : e17 Module : proto
Dir : e17/proto/entropy/src Modified Files: entropy_core.c Log Message: * Misc updates =================================================================== RCS file: /cvs/e/e17/proto/entropy/src/entropy_core.c,v retrieving revision 1.80 retrieving revision 1.81 diff -u -3 -r1.80 -r1.81 --- entropy_core.c 14 Apr 2006 02:20:17 -0000 1.80 +++ entropy_core.c 15 Apr 2006 09:01:19 -0000 1.81 @@ -86,11 +86,26 @@ } else if (e->major == ENTROPY_IPC_EVENT_LAYOUT_NEW) { entropy_gui_component_instance* (*entropy_plugin_layout_create)(entropy_core*); entropy_gui_component_instance* instance; + entropy_generic_file* file = NULL; + + printf("New layout requested! - '%s'\n", (char*)e->data); - printf("New layout requested!\n"); entropy_plugin_layout_create = dlsym(core->layout_plugin->dl_ref, "entropy_plugin_layout_create"); instance = (*entropy_plugin_layout_create)(core); instance->plugin = core->layout_plugin; + + if (e->data) { + file = entropy_core_uri_generic_file_retrieve((char*)e->data); + if (!file) { + file = entropy_core_parse_uri((char*)e->data); + } + + if (file) { + entropy_mime_file_identify(file); + printf("'%s/%s'...\n", file->path, file->filename); + entropy_event_action_file(file, instance); + } + } } return 1; @@ -152,11 +167,9 @@ Ecore_Ipc_Server* server = ecore_ipc_server_connect(ECORE_IPC_LOCAL_USER, IPC_TITLE,0 ,NULL); if (server) { printf("Sending message to server!\n"); - ecore_ipc_server_send(server, ENTROPY_IPC_EVENT_LAYOUT_NEW, 0, 0, 0, 0, NULL,0); + ecore_ipc_server_send(server, ENTROPY_IPC_EVENT_LAYOUT_NEW, 0, 0, 0, 0, + "file:///home/chaos/DigitalBlasphemy/Dual", strlen("file:///home/chaos/DigitalBlasphemy/Dual")+1); } - /*printf("creating the IPC server failed! Entropy already running? - * FIXME we should launch another layout here\n"); - */ ecore_main_loop_iterate(); exit(0); } @@ -1270,6 +1283,9 @@ listener->file = file; listener->count = 1; entropy_core_file_cache_add(file->md5, listener); + + /*Cleanup*/ /*--FIXME*/ + free(uri_path); return file; } ------------------------------------------------------- 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