tracker r2647 - in trunk: . src/libtracker-common src/tracker-extract



Author: mr
Date: Thu Dec  4 09:41:22 2008
New Revision: 2647
URL: http://svn.gnome.org/viewvc/tracker?rev=2647&view=rev

Log:
	* src/libtracker-common/tracker-utils.c: Improve the strings used
	when estimating time remaining and the time is < 1 second.

	* src/tracker-extract/tracker-extract.h: Changed the
	"tracker:unknown" value used for metadata information which is
	unknown to an empty string.


Modified:
   trunk/ChangeLog
   trunk/src/libtracker-common/tracker-utils.c
   trunk/src/tracker-extract/tracker-extract.h

Modified: trunk/src/libtracker-common/tracker-utils.c
==============================================================================
--- trunk/src/libtracker-common/tracker-utils.c	(original)
+++ trunk/src/libtracker-common/tracker-utils.c	Thu Dec  4 09:41:22 2008
@@ -152,7 +152,7 @@
 	gdouble  total;
 	gint	 days, hours, minutes, seconds;
 
-	g_return_val_if_fail (seconds_elapsed >= 0.0, g_strdup (_("unknown time")));
+	g_return_val_if_fail (seconds_elapsed >= 0.0, g_strdup (_("less than one second")));
 
 	total	 = seconds_elapsed;
 
@@ -211,7 +211,7 @@
 
 	if (str[0] == '\0') {
 		g_free (str);
-		str = g_strdup (_("unknown time"));
+		str = g_strdup (_("less than one second"));
 	} else {
 		g_strchug (str);
 	}

Modified: trunk/src/tracker-extract/tracker-extract.h
==============================================================================
--- trunk/src/tracker-extract/tracker-extract.h	(original)
+++ trunk/src/tracker-extract/tracker-extract.h	Thu Dec  4 09:41:22 2008
@@ -30,8 +30,10 @@
  * for this keyword. This is bad because it means we have to string
  * check every value returned in clients that use the Tracker API.
  * This will be fixed in due course after January some time, -mr.
+ *
+ * 
  */
-#define METADATA_UNKNOWN "tracker:unknown"
+#define METADATA_UNKNOWN ""
 
 typedef struct TrackerExtractorData TrackerExtractorData;
 



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