[tracker/needle: 25/47] tracker-needle: Renamed time format function
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/needle: 25/47] tracker-needle: Renamed time format function
- Date: Wed, 27 Oct 2010 15:05:48 +0000 (UTC)
commit bc4e4fce5533567bf607bd300a3a426b3a94f54a
Author: Martyn Russell <martyn lanedo com>
Date: Sun Aug 15 16:33:21 2010 +0100
tracker-needle: Renamed time format function
src/tracker-needle/tracker-needle.vala | 2 +-
src/tracker-needle/tracker-utils.vala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-needle/tracker-needle.vala b/src/tracker-needle/tracker-needle.vala
index 654ecec..91cfb77 100644
--- a/src/tracker-needle/tracker-needle.vala
+++ b/src/tracker-needle/tracker-needle.vala
@@ -228,7 +228,7 @@ public class TrackerNeedle {
Gdk.Pixbuf pixbuf_small = tracker_pixbuf_new_from_file (theme, result[i,1], size_small);
Gdk.Pixbuf pixbuf_big = tracker_pixbuf_new_from_file (theme, result[i,1], size_big);
string file_size = GLib.format_size_for_display (result[i,4].to_int());
- string file_time = tracker_item_format_time (result[i,3]);
+ string file_time = tracker_time_format_from_iso8601 (result[i,3]);
// Insert into model
TreeIter iter;
diff --git a/src/tracker-needle/tracker-utils.vala b/src/tracker-needle/tracker-utils.vala
index faf7495..873486e 100644
--- a/src/tracker-needle/tracker-utils.vala
+++ b/src/tracker-needle/tracker-utils.vala
@@ -21,7 +21,7 @@ using Gtk;
private const int secs_per_day = 60 * 60 * 24;
-public string tracker_item_format_time (string s) {
+public string tracker_time_format_from_iso8601 (string s) {
GLib.Time t = GLib.Time ();
t.strptime (s, "%FT%T");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]