diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | camel/camel-mime-message.c | 11 | ||||
-rw-r--r-- | camel/camel-mime-message.h | 1 | ||||
-rw-r--r-- | tests/test1.c | 6 |
4 files changed, 24 insertions, 0 deletions
@@ -1,3 +1,9 @@ +1999-05-19 root <guiheneu@linoleum.inria.fr> + + * camel/camel-mime-message.c (camel_mime_message_new_with_session): + new func. Creates a message with the session field set + up correctly. + 1999-05-18 bertrand <Bertrand.Guiheneuf@inria.fr> * tests/test1.c (main): tests diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c index 69f1c93773..2c0a4e638d 100644 --- a/camel/camel-mime-message.c +++ b/camel/camel-mime-message.c @@ -143,6 +143,17 @@ camel_mime_message_get_type (void) +CamelMimeMessage * +camel_mime_message_new_with_session (CamelSession *session) +{ + CamelMimeMessage *mime_message; + mime_message = gtk_type_new (CAMEL_MIME_MESSAGE_TYPE); + mime_message->session = session; + return mime_message; +} + + + /* two utils func */ diff --git a/camel/camel-mime-message.h b/camel/camel-mime-message.h index bb4bb5bde9..d582841e4f 100644 --- a/camel/camel-mime-message.h +++ b/camel/camel-mime-message.h @@ -104,6 +104,7 @@ GtkType camel_mime_message_get_type (void); /* public methods */ +CamelMimeMessage *camel_mime_message_new_with_session (CamelSession *session); void set_received_date (CamelMimeMessage *mime_message, GString *received_date); GString *get_received_date (CamelMimeMessage *mime_message); diff --git a/tests/test1.c b/tests/test1.c index 061c9684e7..c19da0ff7c 100644 --- a/tests/test1.c +++ b/tests/test1.c @@ -4,5 +4,11 @@ void main (int argc, char**argv) { + CamelMimeMessage *message; + + gtk_init (&argc, &argv); + message = camel_mime_message_new_with_session (CAMEL_SESSION (NULL)); + + gtk_main(); } |