Commit 8b74551a authored by Simon Morlat's avatar Simon Morlat
Browse files

improve display of call logs for i18n dates.

parent fc2940d5
......@@ -58,6 +58,14 @@ void linphone_gtk_call_log_update(GtkWidget *w){
gchar *logtxt, *minutes, *seconds;
gchar quality[20];
const char *status=NULL;
gchar *start_date=NULL;
if (cl->start_date_time){
GDateTime *dt=g_date_time_new_from_unix_local(cl->start_date_time);
start_date=g_date_time_format(dt,"%c");
g_date_time_unref(dt);
}
display=linphone_address_get_display_name (la);
if (display==NULL){
......@@ -91,14 +99,15 @@ void linphone_gtk_call_log_update(GtkWidget *w){
_("<big><b>%s</b></big>\t<small><i>%s</i>\t"
"<i>Quality: %s</i></small>\n%s\t%s %s\t"),
display, addr, cl->quality!=-1 ? quality : _("n/a"),
cl->start_date, minutes, seconds);
start_date ? start_date : cl->start_date, minutes, seconds);
else logtxt=g_markup_printf_escaped(
_("<big><b>%s</b></big>\t<small><i>%s</i></small>\t"
"\n%s\t%s"),
display, addr,
cl->start_date, status);
start_date ? start_date : cl->start_date, status);
g_free(minutes);
g_free(seconds);
if (start_date) g_free(start_date);
gtk_list_store_append (store,&iter);
gtk_list_store_set (store,&iter,
0, cl->dir==LinphoneCallOutgoing ? GTK_STOCK_GO_UP : GTK_STOCK_GO_DOWN,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment