[evolution/gnome-2-28] Code cleanup in e-msg-composer.c



commit ab60ffb45efa02595ad073aa65cb52e81637bc98
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue Sep 29 14:08:07 2009 -0400

    Code cleanup in e-msg-composer.c

 composer/e-msg-composer.c |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 3edfdbc..5fb5bce 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1275,8 +1275,9 @@ set_editor_text (EMsgComposer *composer,
 /* Commands.  */
 
 static void
-autosave_load_draft_cb (EMsgComposer *composer, GAsyncResult *result,
-			gchar *filename)
+autosave_load_draft_cb (EMsgComposer *composer,
+                        GAsyncResult *result,
+                        gchar *filename)
 {
 	if (e_composer_autosave_snapshot_finish (composer, result, NULL))
 		g_unlink (filename);
@@ -1298,18 +1299,19 @@ autosave_load_draft (const gchar *filename)
 		return NULL;
 
 	msg = camel_mime_message_new ();
-	camel_data_wrapper_construct_from_stream (CAMEL_DATA_WRAPPER (msg), stream);
+	camel_data_wrapper_construct_from_stream (
+		CAMEL_DATA_WRAPPER (msg), stream);
 	camel_object_unref (stream);
 
 	composer = e_msg_composer_new_with_message (msg);
 	if (composer) {
-		/* Mark the message as changed so it gets autosaved again, then
-		 * we can safely remove the old autosave file in
-		 * autosave_load_draft_cb */
+		/* Mark the message as changed so it gets autosaved again,
+		 * then we can safely remove the old autosave file in the
+		 * callback function. */
 		gtkhtml_editor_set_changed (GTKHTML_EDITOR (composer), FALSE);
-		e_composer_autosave_snapshot_async (composer,
-						    (GAsyncReadyCallback) autosave_load_draft_cb,
-						    g_strdup (filename));
+		e_composer_autosave_snapshot_async (
+			composer, (GAsyncReadyCallback)
+			autosave_load_draft_cb, g_strdup (filename));
 
 		g_signal_connect (
 			composer, "send",



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