Exemplo n.º 1
0
/* compose_new_open */
Compose * compose_new_open(Config * config, Message * message)
{
	Compose * compose;

	if((compose = compose_new(config)) == NULL)
		return NULL;
	gtk_text_view_set_editable(GTK_TEXT_VIEW(compose->view), FALSE);
	/* FIXME really implement */
	return compose;
}
Exemplo n.º 2
0
/* compose */
static Compose * _compose(Config * config, char const * subject,
		int toc, char * tov[])
{
	Compose * compose;
	int i;

	if((compose = compose_new(config)) == NULL)
		return NULL;
	compose_set_standalone(compose, TRUE);
	/* recipients */
	if(toc > 0)
		compose_set_header(compose, "To:", tov[0], TRUE);
	for(i = 1; i < toc; i++)
		compose_add_field(compose, "To:", tov[i]);
	/* subject */
	if(subject != NULL)
		compose_set_subject(compose, subject);
	return compose;
}
Exemplo n.º 3
0
/* compose_new_copy */
Compose * compose_new_copy(Compose * compose)
{
	/* FIXME also copy the contents of the text buffer? */
	return compose_new(compose->config);
}
Exemplo n.º 4
0
static void trayicon_compose_acc_cb(GtkMenuItem *menuitem, gpointer data)
{
  compose_new((PrefsAccount *)data, NULL, NULL);
}