/* 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; }
/* 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; }
/* compose_new_copy */ Compose * compose_new_copy(Compose * compose) { /* FIXME also copy the contents of the text buffer? */ return compose_new(compose->config); }
static void trayicon_compose_acc_cb(GtkMenuItem *menuitem, gpointer data) { compose_new((PrefsAccount *)data, NULL, NULL); }