diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-08-09 12:05:28 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-08-09 12:05:28 +0800 |
commit | 4133101266b116d34b04a69e9957c0502daf72e8 (patch) | |
tree | 7bd884fbc7142fe99aeae2d963c0a1b94531dc03 /libempathy-gtk | |
parent | 356bb4555e3d1eacd8115cb8a8f0c91483055a52 (diff) | |
download | gsoc2013-empathy-4133101266b116d34b04a69e9957c0502daf72e8.tar.gz gsoc2013-empathy-4133101266b116d34b04a69e9957c0502daf72e8.tar.zst gsoc2013-empathy-4133101266b116d34b04a69e9957c0502daf72e8.zip |
Add dates to new log viewer
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-log-window.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c index fdf433307..f2aafda31 100644 --- a/libempathy-gtk/empathy-log-window.c +++ b/libempathy-gtk/empathy-log-window.c @@ -375,16 +375,18 @@ insert_or_change_row (EmpathyLogWindow *self, GtkTreeIter *iter) { char *str = gtk_tree_path_to_string (path); - char *script, *text; + char *script, *text, *date; gtk_tree_model_get (model, iter, COL_EVENTS_TEXT, &text, + COL_EVENTS_PRETTY_DATE, &date, -1); - script = g_strdup_printf ("javascript:%s([%s], '%s');", + script = g_strdup_printf ("javascript:%s([%s], '%s', '%s');", method, g_strdelimit (str, ":", ','), - text); + text, + date); // g_print ("%s\n", script); webkit_web_view_execute_script (WEBKIT_WEB_VIEW (self->priv->webview), @@ -392,6 +394,7 @@ insert_or_change_row (EmpathyLogWindow *self, g_free (str); g_free (text); + g_free (date); g_free (script); } |