gmime r1305 - trunk/tests



Author: fejj
Date: Sat May 31 02:34:12 2008
New Revision: 1305
URL: http://svn.gnome.org/viewvc/gmime?rev=1305&view=rev

Log:
don't use deprecated functions

Modified:
   trunk/tests/test-mbox.c
   trunk/tests/test-pgpmime.c

Modified: trunk/tests/test-mbox.c
==============================================================================
--- trunk/tests/test-mbox.c	(original)
+++ trunk/tests/test-mbox.c	Sat May 31 02:34:12 2008
@@ -112,7 +112,7 @@
 		
 		from = g_mime_parser_get_from (parser);
 		g_mime_stream_printf (summary, "%s\n", from);
-		exev = g_mime_message_get_header (message, "X-Evolution");
+		exev = g_mime_object_get_header ((GMimeObject *) message, "X-Evolution");
 		g_mime_stream_printf (summary, "X-Evolution: %s\n", exev ? exev : "None");
 		print_mime_struct (summary, message->mime_part, 0);
 		g_mime_stream_write (summary, "\n", 1);

Modified: trunk/tests/test-pgpmime.c
==============================================================================
--- trunk/tests/test-pgpmime.c	(original)
+++ trunk/tests/test-pgpmime.c	Sat May 31 02:34:12 2008
@@ -266,7 +266,7 @@
 				      "Federico Mena-Quintero",
 				      "federico helixcode com");
 	g_mime_message_set_subject (message, "This is a test message");
-	g_mime_message_set_header (message, "X-Mailer", "main.c");
+	g_mime_object_set_header ((GMimeObject *) message, "X-Mailer", "main.c");
 	g_mime_message_set_mime_part (message, GMIME_OBJECT (mps));
 	g_object_unref (mps);
 	
@@ -365,7 +365,7 @@
 	g_mime_message_add_recipient (message, GMIME_RECIPIENT_TYPE_TO,
 				      "Federico Mena-Quintero", "federico helixcode com");
 	g_mime_message_set_subject (message, "This is a test message");
-	g_mime_message_set_header (message, "X-Mailer", "main.c");
+	g_mime_object_set_header ((GMimeObject *) message, "X-Mailer", "main.c");
 	g_mime_message_set_mime_part (message, GMIME_OBJECT (mpe));
 	
 	/* okay, now to test our decrypt function... */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]