summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-01-13 17:28:04 +0100
committerGravatar Martin Szulecki2010-01-13 17:28:04 +0100
commit3e6fd4833e6b23d3fa8d01ed170552e007d561c9 (patch)
tree6928a1e8d980dbc9a4d063d3e5214b6ee6ce12de
parent8e72403ca6f0796a8a44daf6a15db34ad9f8a282 (diff)
downloadgnome-plist-editor-master.tar.gz
gnome-plist-editor-master.tar.bz2
Implement rendering date nodesHEADmaster
-rw-r--r--src/gnome-plist-editor.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gnome-plist-editor.c b/src/gnome-plist-editor.c
index c2de09d..7dc4ae7 100644
--- a/src/gnome-plist-editor.c
+++ b/src/gnome-plist-editor.c
@@ -425,6 +425,7 @@ void plist_cell_data_function (GtkTreeViewColumn *col,
double d;
uint8_t b;
uint64_t u = 0;
+ GTimeVal val = { 0, 0 };
col_type = (col_type_t)GPOINTER_TO_INT(user_data);
@@ -498,7 +499,8 @@ void plist_cell_data_function (GtkTreeViewColumn *col,
text = "FIXME: Parse Data";
break;
case PLIST_DATE:
- text = "FIXME: Parse Dates";
+ plist_get_date_val(node, (int32_t*)&val.tv_sec, (int32_t*)&val.tv_usec);
+ text = g_time_val_to_iso8601(&val);
break;
case PLIST_ARRAY:
text = g_strdup_printf("(%d items)", plist_array_get_size(node));