Added a "Reply" and a "Delete" button to the message viewing window (not implemented)
This commit is contained in:
parent
7f9119e06e
commit
77292584de
@ -328,6 +328,24 @@ void on_phone_read_call(gpointer data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* on_phone_read_delete */
|
||||||
|
void on_phone_read_delete(gpointer data)
|
||||||
|
{
|
||||||
|
Phone * phone = data;
|
||||||
|
|
||||||
|
/* FIXME implement */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* on_phone_read_reply */
|
||||||
|
void on_phone_read_reply(gpointer data)
|
||||||
|
{
|
||||||
|
Phone * phone = data;
|
||||||
|
|
||||||
|
/* FIXME implement */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* write */
|
/* write */
|
||||||
/* on_phone_write_attach */
|
/* on_phone_write_attach */
|
||||||
void on_phone_write_attach(gpointer data)
|
void on_phone_write_attach(gpointer data)
|
||||||
|
@ -63,6 +63,8 @@ void on_phone_messages_write(gpointer data);
|
|||||||
|
|
||||||
/* read */
|
/* read */
|
||||||
void on_phone_read_call(gpointer data);
|
void on_phone_read_call(gpointer data);
|
||||||
|
void on_phone_read_delete(gpointer data);
|
||||||
|
void on_phone_read_reply(gpointer data);
|
||||||
|
|
||||||
/* write */
|
/* write */
|
||||||
void on_phone_write_attach(gpointer data);
|
void on_phone_write_attach(gpointer data);
|
||||||
|
10
src/phone.c
10
src/phone.c
@ -1670,6 +1670,16 @@ void phone_show_read(Phone * phone, gboolean show, ...)
|
|||||||
g_signal_connect_swapped(G_OBJECT(toolitem), "clicked",
|
g_signal_connect_swapped(G_OBJECT(toolitem), "clicked",
|
||||||
G_CALLBACK(on_phone_read_call), phone);
|
G_CALLBACK(on_phone_read_call), phone);
|
||||||
gtk_toolbar_insert(GTK_TOOLBAR(widget), toolitem, -1);
|
gtk_toolbar_insert(GTK_TOOLBAR(widget), toolitem, -1);
|
||||||
|
toolitem = gtk_tool_button_new(NULL, _("Reply"));
|
||||||
|
gtk_tool_button_set_icon_name(GTK_TOOL_BUTTON(toolitem),
|
||||||
|
"mail-reply-sender");
|
||||||
|
g_signal_connect_swapped(G_OBJECT(toolitem), "clicked",
|
||||||
|
G_CALLBACK(on_phone_read_reply), phone);
|
||||||
|
gtk_toolbar_insert(GTK_TOOLBAR(widget), toolitem, -1);
|
||||||
|
toolitem = gtk_tool_button_new_from_stock(GTK_STOCK_DELETE);
|
||||||
|
g_signal_connect_swapped(G_OBJECT(toolitem), "clicked",
|
||||||
|
G_CALLBACK(on_phone_read_delete), phone);
|
||||||
|
gtk_toolbar_insert(GTK_TOOLBAR(widget), toolitem, -1);
|
||||||
gtk_box_pack_start(GTK_BOX(vbox), widget, FALSE, TRUE, 0);
|
gtk_box_pack_start(GTK_BOX(vbox), widget, FALSE, TRUE, 0);
|
||||||
/* name */
|
/* name */
|
||||||
phone->re_name = gtk_label_new(NULL);
|
phone->re_name = gtk_label_new(NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user