diff options
author | Bertrand Guiheneuf <bertrand@src.gnome.org> | 1999-05-20 03:07:52 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 1999-05-20 03:07:52 +0800 |
commit | f53eb88c5682c59e0e26e9a6e594566fd628e486 (patch) | |
tree | a27c02904a32cd6b4c9a6fae5eb0045edb4cab16 | |
parent | 058a84bf365dc0a384d1de08d80c686838e126b7 (diff) | |
download | gsoc2013-evolution-f53eb88c5682c59e0e26e9a6e594566fd628e486.tar gsoc2013-evolution-f53eb88c5682c59e0e26e9a6e594566fd628e486.tar.gz gsoc2013-evolution-f53eb88c5682c59e0e26e9a6e594566fd628e486.tar.bz2 gsoc2013-evolution-f53eb88c5682c59e0e26e9a6e594566fd628e486.tar.lz gsoc2013-evolution-f53eb88c5682c59e0e26e9a6e594566fd628e486.tar.xz gsoc2013-evolution-f53eb88c5682c59e0e26e9a6e594566fd628e486.tar.zst gsoc2013-evolution-f53eb88c5682c59e0e26e9a6e594566fd628e486.zip |
sync
svn path=/trunk/; revision=933
-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(); } |