Enlightenment CVS committal Author : lordchaos Project : e17 Module : proto
Dir : e17/proto/entropy/src/plugins Modified Files: ewl_icon_local_viewer.c filesystem.c Log Message: Handle new stat structure from evfs =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/plugins/ewl_icon_local_viewer.c,v retrieving revision 1.20 retrieving revision 1.21 diff -u -3 -r1.20 -r1.21 --- ewl_icon_local_viewer.c 8 Nov 2005 07:51:34 -0000 1.20 +++ ewl_icon_local_viewer.c 9 Nov 2005 23:52:21 -0000 1.21 @@ -184,6 +184,7 @@ text = ewl_text_new(); stime = file_stat->stat_obj->st_mtime; + printf("RET mtime is: %d\n", file_stat->stat_obj->st_mtime); ewl_text_text_set(EWL_TEXT(text), ctime(&stime)); ewl_container_child_append(EWL_CONTAINER(hbox), text); ewl_widget_show(text); =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/plugins/filesystem.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -3 -r1.15 -r1.16 --- filesystem.c 9 Nov 2005 11:27:36 -0000 1.15 +++ filesystem.c 9 Nov 2005 23:52:21 -0000 1.16 @@ -148,7 +148,17 @@ /*Build a file<->stat structure to pass to requester*/ file_stat = entropy_malloc(sizeof(entropy_file_stat)); file_stat->stat_obj = entropy_malloc(sizeof(struct stat)); - memcpy(file_stat->stat_obj, &data->stat.stat_obj, sizeof(struct stat)); + + + file_stat->stat_obj->st_uid = data->stat.stat_obj.st_uid; + file_stat->stat_obj->st_gid = data->stat.stat_obj.st_gid; + file_stat->stat_obj->st_size = data->stat.stat_obj.st_size; + file_stat->stat_obj->st_atime = data->stat.stat_obj.ist_atime; + file_stat->stat_obj->st_mtime = data->stat.stat_obj.ist_mtime; + file_stat->stat_obj->st_ctime = data->stat.stat_obj.ist_ctime; + printf("Size of evfs_event: %d\n", sizeof(evfs_stat)); + + /*Retrieve the file. This is bad - the file might not exist anymore! */ file_stat->file = ((entropy_file_listener*)ecore_hash_get((( ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs