[gthumb] [rename_tool] changed the default date format, added the file time



commit a6241511ebf126b4e4fdb98455df4ec045a1497b
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Wed Aug 4 13:52:15 2010 +0200

    [rename_tool] changed the default date format, added the file time
    
    Now the default date format is the same of version 2.10, that is
    %Y-%m-%d--%H.%M.%S.  Added the %q format as a shortcut for the
    format %Y-%m-%d.

 gthumb/glib-utils.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/glib-utils.c b/gthumb/glib-utils.c
index 11ad124..6f03207 100644
--- a/gthumb/glib-utils.c
+++ b/gthumb/glib-utils.c
@@ -535,6 +535,9 @@ _g_time_val_strftime (GTimeVal   *time_,
 	struct tm *tm;
 
 	if ((format == NULL) || (*format == '\0'))
+		format = "%Y-%m-%d--%H.%M.%S";
+
+	if (strcmp (format, "%q") == 0)
 		format = "%Y-%m-%d";
 
 	secs = time_->tv_sec;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]