comparison src/filedata.c @ 945:fd84847c8231

speed-up of directory notification on deleting large number of files
author nadvornik
date Sun, 27 Jul 2008 13:46:24 +0000
parents 0f243d361ed2
children e3ca16c68ebd
comparison
equal deleted inserted replaced
944:e73552743bda 945:fd84847c8231
233 if (fd->size != st->st_size || 233 if (fd->size != st->st_size ||
234 fd->date != st->st_mtime) 234 fd->date != st->st_mtime)
235 { 235 {
236 fd->size = st->st_size; 236 fd->size = st->st_size;
237 fd->date = st->st_mtime; 237 fd->date = st->st_mtime;
238 fd->mode = st->st_mode;
238 if (fd->thumb_pixbuf) g_object_unref(fd->thumb_pixbuf); 239 if (fd->thumb_pixbuf) g_object_unref(fd->thumb_pixbuf);
239 fd->thumb_pixbuf = NULL; 240 fd->thumb_pixbuf = NULL;
240 file_data_increment_version(fd); 241 file_data_increment_version(fd);
241 file_data_send_notification(fd, NOTIFY_TYPE_REREAD); 242 file_data_send_notification(fd, NOTIFY_TYPE_REREAD);
242 ret = TRUE; 243 ret = TRUE;
349 fd->collate_key_name_nocase = NULL; 350 fd->collate_key_name_nocase = NULL;
350 fd->original_path = NULL; 351 fd->original_path = NULL;
351 352
352 fd->size = st->st_size; 353 fd->size = st->st_size;
353 fd->date = st->st_mtime; 354 fd->date = st->st_mtime;
355 fd->mode = st->st_mode;
354 fd->thumb_pixbuf = NULL; 356 fd->thumb_pixbuf = NULL;
355 fd->sidecar_files = NULL; 357 fd->sidecar_files = NULL;
356 fd->ref = 1; 358 fd->ref = 1;
357 fd->magick = 0x12345678; 359 fd->magick = 0x12345678;
358 360