gthumb r2206 - in trunk: . src
- From: mjc svn gnome org
- To: svn-commits-list gnome org
- Subject: gthumb r2206 - in trunk: . src
- Date: Sun, 20 Jan 2008 22:09:46 +0000 (GMT)
Author: mjc
Date: Sun Jan 20 22:09:46 2008
New Revision: 2206
URL: http://svn.gnome.org/viewvc/gthumb?rev=2206&view=rev
Log:
2008-01-20 Michael J. Chudobiak <mjc svn gnome org>
* src/dlg-rename-series.c: (get_image_date), (update_list):
* src/gth-fullscreen.c: (get_file_info):
Update more functions to use get_metadata_time_from_fd.
Modified:
trunk/ChangeLog
trunk/src/dlg-rename-series.c
trunk/src/gth-fullscreen.c
Modified: trunk/src/dlg-rename-series.c
==============================================================================
--- trunk/src/dlg-rename-series.c (original)
+++ trunk/src/dlg-rename-series.c Sun Jan 20 22:09:46 2008
@@ -262,16 +262,16 @@
static char *
-get_image_date (const char *filename)
+get_image_date (FileData *fd)
{
time_t mtime = 0;
struct tm *ltime;
char *stime;
- mtime = get_metadata_time (NULL, filename, NULL);
+ mtime = get_metadata_time_from_fd (fd);
if (mtime == 0)
- mtime = get_file_mtime (filename);
+ mtime = get_file_mtime (fd->path);
ltime = localtime (&mtime);
@@ -389,7 +389,7 @@
if (cached_date != NULL)
image_date = g_strdup (cached_date);
else {
- image_date = get_image_date (fdata->path);
+ image_date = get_image_date (fdata);
if (image_date != NULL)
g_hash_table_insert (data->date_cache, g_strdup (fdata->path), g_strdup (image_date));
}
Modified: trunk/src/gth-fullscreen.c
==============================================================================
--- trunk/src/gth-fullscreen.c (original)
+++ trunk/src/gth-fullscreen.c Sun Jan 20 22:09:46 2008
@@ -876,7 +876,7 @@
zoom = (int) (image_viewer->zoom_level * 100.0);
- timer = get_metadata_time (NULL, image_filename, NULL);
+ timer = get_metadata_time_from_fd (priv->current->data);
if (timer == 0)
timer = get_file_mtime (image_filename);
tm = localtime (&timer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]