Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src


Modified Files:
        entropy_core.c 


Log Message:
Added support for deleting a directory and update events for the same in 
structure_viewer and ewl_iconbox_local_viewer

===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/entropy_core.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- entropy_core.c      23 Oct 2005 09:56:22 -0000      1.5
+++ entropy_core.c      24 Oct 2005 03:10:23 -0000      1.6
@@ -318,6 +318,8 @@
                return "entropy_gui_event_file_create";
        } else if (!strcmp(event, ENTROPY_GUI_EVENT_FILE_REMOVE)) {
                return "entropy_gui_event_file_remove";
+       } else if (!strcmp(event, ENTROPY_GUI_EVENT_FILE_REMOVE_DIRECTORY)) {
+               return "entropy_gui_event_file_remove_directory";
        } else if (!strcmp(event, ENTROPY_GUI_EVENT_ACTION_FILE)) {
                return "entropy_gui_event_action_file";
        } else if (!strcmp(event, ENTROPY_GUI_EVENT_FILE_STAT)) {
@@ -690,7 +692,21 @@
                }
                entropy_notify_event_destroy(ev);
 
+       } else if 
(!strcmp(event->event_type,ENTROPY_GUI_EVENT_FILE_REMOVE_DIRECTORY)) {
+               entropy_notify_event* ev = entropy_notify_event_new();
+               ev->event_type = ENTROPY_NOTIFY_FILE_REMOVE_DIRECTORY;
+               
+               //printf("Sending a file create event...\n");
 
+               ecore_list_goto_first(el);
+               while ( (iter = ecore_list_next(el)) ) {
+                       (*iter->plugin->gui_event_callback_p)
+                               (ev, 
+                                iter, 
+                                event->data,   /*An entropy_generic_file*/
+                                iter);
+               }
+               entropy_notify_event_destroy(ev);
 
        
        } else if (!strcmp(event->event_type,ENTROPY_GUI_EVENT_ACTION_FILE)) {




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to