Implemented calling the sender of a message being read (untested)
This commit is contained in:
parent
d43ed8f0dd
commit
796abf8f98
@ -310,7 +310,7 @@ void on_phone_read_call(gpointer data)
|
|||||||
{
|
{
|
||||||
Phone * phone = data;
|
Phone * phone = data;
|
||||||
|
|
||||||
/* FIXME implement */
|
phone_read_call(phone);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
14
src/phone.c
14
src/phone.c
@ -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 */
|
/* show */
|
||||||
/* phone_show_call */
|
/* phone_show_call */
|
||||||
void phone_show_call(Phone * phone, gboolean show, ...)
|
void phone_show_call(Phone * phone, gboolean show, ...)
|
||||||
|
@ -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,
|
void phone_messages_write(Phone * phone, char const * number,
|
||||||
char const * text);
|
char const * text);
|
||||||
|
|
||||||
|
/* read */
|
||||||
|
void phone_read_call(Phone * phone);
|
||||||
|
|
||||||
/* write */
|
/* write */
|
||||||
void phone_write_count_buffer(Phone * phone);
|
void phone_write_count_buffer(Phone * phone);
|
||||||
void phone_write_send(Phone * phone);
|
void phone_write_send(Phone * phone);
|
||||||
|
Loading…
Reference in New Issue
Block a user