Skip to content
Snippets Groups Projects
Commit e9bb450d authored by Alexandre Savard's avatar Alexandre Savard
Browse files

No Utf-8 anymore, only ASCII

parent 7ee3d70f
No related branches found
No related tags found
No related merge requests found
......@@ -447,6 +447,10 @@ process_dialing(call_t * c, guint keyval, gchar * key)
dbus_start_tone( FALSE , 0 );
//dbus_play_dtmf( key );
}
g_print("process_dialing : keyval : %i \n",keyval);
g_print("process_dialing : key : %s \n",key);
switch (keyval)
{
case 65293: /* ENTER */
......@@ -460,9 +464,10 @@ process_dialing(call_t * c, guint keyval, gchar * key)
{ /* Brackets mandatory because of local vars */
gchar * before = c->to;
if(strlen(c->to) >= 1){
c->to = g_strndup(c->to, strlen(c->to) -1);
g_free(before);
g_print("TO: %s\n", c->to);
g_print("TO: backspace %s\n", c->to);
if(c->state == CALL_STATE_DIALING)
{
......@@ -485,14 +490,16 @@ process_dialing(call_t * c, guint keyval, gchar * key)
case 65509: /* CAPS */
break;
default:
if (keyval < 255 || (keyval >65453 && keyval < 65466))
// if (keyval < 255 || (keyval >65453 && keyval < 65466))
if (keyval < 127)
{
if(c->state != CALL_STATE_TRANSFERT)
if(c->state != CALL_STATE_TRANSFERT)
dbus_play_dtmf( key );
gchar * before = c->to;
c->to = g_strconcat(c->to, key, NULL);
g_free(before);
g_print("TO: %s\n", c->to);
g_print("TO:default %s\n", c->to);
if(c->state == CALL_STATE_DIALING)
{
......
......@@ -691,6 +691,7 @@ update_call_tree (calltab_t* tab, call_t * c)
}
else
{
g_print("Stuff to be printed %s %s \n",call_get_number(c),call_get_name(c));
description = g_markup_printf_escaped("<b>%s</b> <i>%s</i>",
call_get_number(c),
call_get_name(c));
......
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