Implemented calling the sender of a message being read (untested)

This commit is contained in:
Pierre Pronchery 2010-05-16 23:39:07 +00:00
parent d43ed8f0dd
commit 796abf8f98
3 changed files with 18 additions and 1 deletions

View File

@ -310,7 +310,7 @@ void on_phone_read_call(gpointer data)
{
Phone * phone = data;
/* FIXME implement */
phone_read_call(phone);
}

View File

@ -802,6 +802,20 @@ void phone_messages_write(Phone * phone, char const * number, char const * text)
}
/* read */
/* phone_read_call */
void phone_read_call(Phone * phone)
{
char const * number;
if(phone->re_window == NULL)
return;
if((number = gtk_label_get_text(GTK_LABEL(phone->re_number))) == NULL)
return;
gsm_call(phone->gsm, GSM_CALL_TYPE_VOICE, number);
}
/* show */
/* phone_show_call */
void phone_show_call(Phone * phone, gboolean show, ...)

View File

@ -74,6 +74,9 @@ void phone_messages_set(Phone * phone, unsigned int index, char const * number,
void phone_messages_write(Phone * phone, char const * number,
char const * text);
/* read */
void phone_read_call(Phone * phone);
/* write */
void phone_write_count_buffer(Phone * phone);
void phone_write_send(Phone * phone);