Mercurial > geeqie
comparison src/metadata.c @ 1483:7cb24fdf07c0
re-added possibility to display basic file info (size, mode, date)
author | nadvornik |
---|---|
date | Sun, 29 Mar 2009 10:36:13 +0000 |
parents | 400ecfc3d8b1 |
children | d6061c019ceb |
comparison
equal
deleted
inserted
replaced
1482:dac747d99394 | 1483:7cb24fdf07c0 |
---|---|
478 { | 478 { |
479 gchar *comment = NULL; | 479 gchar *comment = NULL; |
480 if (metadata_legacy_read(fd, NULL, &comment)) return g_list_append(NULL, comment); | 480 if (metadata_legacy_read(fd, NULL, &comment)) return g_list_append(NULL, comment); |
481 } | 481 } |
482 | 482 |
483 if (strncmp(key, "file.", 5) == 0) | |
484 { | |
485 return g_list_append(NULL, metadata_file_info(fd, key, format)); | |
486 } | |
487 | |
483 exif = exif_read_fd(fd); /* this is cached, thus inexpensive */ | 488 exif = exif_read_fd(fd); /* this is cached, thus inexpensive */ |
484 if (!exif) return NULL; | 489 if (!exif) return NULL; |
485 list = exif_get_metadata(exif, key, format); | 490 list = exif_get_metadata(exif, key, format); |
486 exif_free_fd(fd, exif); | 491 exif_free_fd(fd, exif); |
487 return list; | 492 return list; |