Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src/plugins


Modified Files:
        filesystem.c 


Log Message:
* Add move_multi - be warned - 'Trash' context menu option *will* now do what 
it says - i.e. original file is moved to trash

===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/plugins/filesystem.c,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -3 -r1.75 -r1.76
--- filesystem.c        15 Aug 2006 12:04:53 -0000      1.75
+++ filesystem.c        20 Aug 2006 05:51:11 -0000      1.76
@@ -28,6 +28,7 @@
 Ecore_List *filelist_get (entropy_file_request * request);
 void entropy_filesystem_file_copy (entropy_generic_file * file, char *path_to, 
entropy_gui_component_instance * instance);
 void entropy_filesystem_file_copy_multi (Ecore_List* files, char *path_to, 
entropy_gui_component_instance * instance);
+void entropy_filesystem_file_move_multi (Ecore_List* files, char *path_to, 
entropy_gui_component_instance * instance);
 
 void entropy_filesystem_file_move (entropy_generic_file * file, char *path_to, 
entropy_gui_component_instance * instance);
 
@@ -614,6 +615,7 @@
   plugin->file_functions.filelist_get = &filelist_get;
   plugin->file_functions.file_copy = &entropy_filesystem_file_copy;
   plugin->file_functions.file_copy_multi = &entropy_filesystem_file_copy_multi;
+  plugin->file_functions.file_move_multi = &entropy_filesystem_file_move_multi;
   plugin->file_functions.file_move = &entropy_filesystem_file_move;
 
   plugin->file_functions.file_rename = &entropy_filesystem_file_rename;
@@ -930,6 +932,27 @@
   
   /*Track the copy action */
   id = evfs_client_file_copy_multi (con, evfs_files, 
evfs_parse_uri_single(path_to));
+  ecore_hash_set(evfs_dir_requests, (long*)id, instance);
+
+}
+
+void
+entropy_filesystem_file_move_multi (Ecore_List* files, char *path_to,
+                             entropy_gui_component_instance * instance)
+{
+  long id;
+  entropy_generic_file* file;
+  Ecore_List* evfs_files;
+
+  evfs_files = ecore_list_new();
+  ecore_list_goto_first(files);
+  while ( (file = ecore_list_next(files)) ) { 
+         printf("Parsing %s for multi move\n", file->uri);
+         ecore_list_append(evfs_files, evfs_parse_uri_single(file->uri));
+  }
+  
+  /*Track the copy action */
+  id = evfs_client_file_move_multi (con, evfs_files, 
evfs_parse_uri_single(path_to));
   ecore_hash_set(evfs_dir_requests, (long*)id, instance);
 
 }



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to