Enlightenment CVS committal Author : lordchaos Project : e17 Module : proto
Dir : e17/proto/entropy/src Modified Files: entropy_core.c entropy_mime_engine.c Log Message: * First bits of the entropy file copy progress dialog =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/entropy_core.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -3 -r1.19 -r1.20 --- entropy_core.c 10 Nov 2005 12:14:05 -0000 1.19 +++ entropy_core.c 16 Nov 2005 11:48:34 -0000 1.20 @@ -344,6 +344,8 @@ return "entropy_gui_event_file_stat"; } else if (!strcmp(event, ENTROPY_GUI_EVENT_FILE_STAT_AVAILABLE)) { return "entropy_gui_event_file_stat_available"; + } else if (!strcmp(event, ENTROPY_GUI_EVENT_FILE_PROGRESS)) { + return "entropy_gui_event_file_progress"; } else { return ""; } @@ -841,7 +843,24 @@ } entropy_notify_event_destroy(ev); + } else if (!strcmp(event->event_type,ENTROPY_GUI_EVENT_FILE_PROGRESS)) { + entropy_notify_event* ev = entropy_notify_event_new(); + ev->event_type = ENTROPY_NOTIFY_FILE_PROGRESS; + + + + /*Call the requestors*/ + ecore_list_goto_first(el); + while ( (iter = ecore_list_next(el)) ) { + //printf( "Calling callback at : %p\n", iter->plugin->gui_event_callback_p); + (*iter->plugin->gui_event_callback_p) + (ev, + iter, + event->data, /*An evfs progress event*/ + iter); + } + entropy_notify_event_destroy(ev); } else { fprintf(stderr, "entropy_core: Unknown event type called\n"); =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/entropy_mime_engine.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- entropy_mime_engine.c 27 Oct 2005 07:17:16 -0000 1.2 +++ entropy_mime_engine.c 16 Nov 2005 11:48:34 -0000 1.3 @@ -7,7 +7,7 @@ char* type = NULL; /*IF we already have a mime type, return what we have*/ - if (strlen(file->mime_type)) return file->mime_type; + if (strlen(file->mime_type) > 0) return file->mime_type; /*printf("Identifying a file..\n"); */ ecore_list_goto_first(mime_plugins); ------------------------------------------------------- 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. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs