Skip to content
Snippets Groups Projects
Commit a35059c5 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

format

parent b97419e2
No related branches found
No related tags found
No related merge requests found
......@@ -497,6 +497,8 @@ sflphone_keypad( guint keyval, gchar * key)
case CALL_STATE_DIALING: // Currently dialing => edit number
//dbus_play_dtmf(key);
process_dialing(c, keyval, key);
//if( active_calltree == history )
//switch_tab();
break;
case CALL_STATE_CURRENT:
switch (keyval)
......
......@@ -71,8 +71,16 @@ format( struct tm* ptr )
gchar *hour, *min;
gchar *day_of_week, *month, *day_number;
hour = g_markup_printf_escaped("%i", ptr->tm_hour);
min = g_markup_printf_escaped("%i", ptr->tm_min);
if( ptr->tm_hour < 10 )
hour = g_markup_printf_escaped("0%i", ptr->tm_hour);
else
hour = g_markup_printf_escaped("%i", ptr->tm_hour);
if( ptr->tm_min < 10 )
min = g_markup_printf_escaped("0%i", ptr->tm_min);
else
min = g_markup_printf_escaped("%i", ptr->tm_min);
day_of_week = g_markup_printf_escaped( "%i", ptr->tm_mday );
month = months[ptr->tm_mon];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment