aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-04-27 22:53:52 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-06-09 19:34:56 +0800
commit91eae10335e7802d95c1f80132aa206ac0f5e9ff (patch)
tree5e18a9ef642368dc3e273dd75d63dc142bfec4b5 /libempathy-gtk
parentd77b0a9e495b8e20702824deef690dff6e43e95a (diff)
downloadgsoc2013-empathy-91eae10335e7802d95c1f80132aa206ac0f5e9ff.tar
gsoc2013-empathy-91eae10335e7802d95c1f80132aa206ac0f5e9ff.tar.gz
gsoc2013-empathy-91eae10335e7802d95c1f80132aa206ac0f5e9ff.tar.bz2
gsoc2013-empathy-91eae10335e7802d95c1f80132aa206ac0f5e9ff.tar.lz
gsoc2013-empathy-91eae10335e7802d95c1f80132aa206ac0f5e9ff.tar.xz
gsoc2013-empathy-91eae10335e7802d95c1f80132aa206ac0f5e9ff.tar.zst
gsoc2013-empathy-91eae10335e7802d95c1f80132aa206ac0f5e9ff.zip
Display date and time in the event treeview
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-log-window.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index 95c8ceab7..794b325dc 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -724,7 +724,8 @@ get_parent_iter_for_message (TplEvent *event,
date = g_date_time_new_from_unix_utc (
tpl_event_get_timestamp (event));
- pretty_date = g_date_time_format (date, "%x");
+ pretty_date = g_date_time_format (date,
+ C_("A date with the time", "%A, %e %B %Y %X"));
body = g_strdup_printf (_("Chat with %s"),
get_contact_alias_for_message (message));
@@ -783,7 +784,7 @@ log_window_append_chat_message (TplEvent *event,
date = g_date_time_new_from_unix_utc (
tpl_event_get_timestamp (event));
- pretty_date = g_date_time_format (date, "%x");
+ pretty_date = g_date_time_format (date, "%X");
get_parent_iter_for_message (event, message, &parent);
@@ -832,7 +833,8 @@ log_window_append_call (TplEvent *event,
started_date = g_date_time_new_from_unix_utc (
tpl_event_get_timestamp (event));
- pretty_date = g_date_time_format (started_date, "%x");
+ pretty_date = g_date_time_format (started_date,
+ C_("A date with the time", "%A, %e %B %Y %X"));
gtk_tree_store_append (store, &iter, NULL);
gtk_tree_store_set (store, &iter,
@@ -1831,6 +1833,7 @@ log_window_events_setup (EmpathyLogWindow *window)
"text", COL_EVENTS_TEXT);
cell = gtk_cell_renderer_text_new ();
+ g_object_set (cell, "xalign", 1.0, NULL);
gtk_tree_view_column_pack_end (column, cell, FALSE);
gtk_tree_view_column_add_attribute (column, cell,
"text", COL_EVENTS_PRETTY_DATE);