Enlightenment CVS committal Author : chaos Project : e17 Module : proto
Dir : e17/proto/entropy/src Modified Files: main.c plugin_helper.c Log Message: * File rename dialog for etk GUI =================================================================== RCS file: /cvs/e/e17/proto/entropy/src/main.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -3 -r1.9 -r1.10 --- main.c 12 Apr 2006 11:47:04 -0000 1.9 +++ main.c 18 Apr 2006 12:19:54 -0000 1.10 @@ -19,8 +19,8 @@ write(2, "**** SEGMENTATION FAULT ****\n", 29); write(2, "**** Printing Backtrace... *****\n\n", 34); - /*size = backtrace(array, 255); - backtrace_symbols_fd(array, size, 2);*/ + size = backtrace(array, 255); + backtrace_symbols_fd(array, size, 2); ecore_x_pointer_ungrab(); ecore_x_keyboard_ungrab(); =================================================================== RCS file: /cvs/e/e17/proto/entropy/src/plugin_helper.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -3 -r1.18 -r1.19 --- plugin_helper.c 11 Apr 2006 10:51:29 -0000 1.18 +++ plugin_helper.c 18 Apr 2006 12:19:54 -0000 1.19 @@ -240,14 +240,18 @@ } } -void entropy_plugin_filesystem_file_rename(entropy_generic_file* file, entropy_generic_file* dest) +void entropy_plugin_filesystem_file_rename(entropy_generic_file* file, char* dest) { - Entropy_Plugin_File* plugin = + Entropy_Plugin_File* plugin = ENTROPY_PLUGIN_FILE(entropy_plugins_type_get_first (ENTROPY_PLUGIN_BACKEND_FILE, ENTROPY_PLUGIN_SUB_TYPE_ALL)); if (plugin) { - (*plugin->file_functions.file_rename) (file,dest); + entropy_generic_file* clone = entropy_generic_file_clone(file); + strncpy(clone->filename, dest, strlen(dest)); + + (*plugin->file_functions.file_rename) (file,clone); + entropy_generic_file_destroy(clone); } } ------------------------------------------------------- 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