Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src/dialogs


Modified Files:
        etk_file_context_menu.c 


Log Message:
* Minor api changes
* Test trash menu

===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/dialogs/etk_file_context_menu.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- etk_file_context_menu.c     11 Aug 2006 11:11:59 -0000      1.13
+++ etk_file_context_menu.c     15 Aug 2006 12:04:53 -0000      1.14
@@ -203,6 +203,33 @@
 }
 
 static void
+_entropy_etk_context_menu_trash_copy_cb(Etk_Object *object, void *data)
+{
+       Ecore_List* files = ecore_list_new();
+
+       if (_entropy_etk_context_menu_mode == 0) {
+               ecore_list_append(files,_entropy_etk_context_menu_current_file);
+       } else {
+               entropy_generic_file* file;
+
+               ecore_list_goto_first(_entropy_etk_context_menu_selected_files);
+               while ( (file = 
ecore_list_next(_entropy_etk_context_menu_selected_files))) {
+                       ecore_list_append(files,file);
+               }
+               
+       }
+
+       if (ecore_list_nodes(files) > 0) {
+               entropy_plugin_filesystem_file_copy_multi(files, "trash:///", 
+                       _entropy_etk_context_menu_current_instance);    
+       }
+
+       
+
+       ecore_list_destroy(files);
+}
+
+static void
 _entropy_etk_context_menu_group_file_add_remove_cb(Etk_Object *object, void 
*data)
 {
        const char* label;
@@ -414,6 +441,12 @@
 
                menu_item =  _entropy_etk_menu_item_new(ETK_MENU_ITEM_NORMAL, 
_("Folder.."), ETK_STOCK_EDIT_COPY, ETK_MENU_SHELL(new_menu),NULL);
                etk_signal_connect("activated", ETK_OBJECT(menu_item), 
ETK_CALLBACK(_entropy_etk_context_menu_directory_add_cb), NULL);
+
+               
+               /*TEST: TRASH*/
+               menu_item = _entropy_etk_menu_item_new(ETK_MENU_ITEM_NORMAL, 
_("Copy to trash (test)"), ETK_STOCK_EDIT_COPY, ETK_MENU_SHELL(menu),NULL);
+               etk_signal_connect("activated", ETK_OBJECT(menu_item), 
+                               
ETK_CALLBACK(_entropy_etk_context_menu_trash_copy_cb), NULL);
 
        }
 



-------------------------------------------------------------------------
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