aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-09-30 02:08:07 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-09-30 02:16:10 +0800
commit686337d38223cb9a1286b9ea7bbaa4763b236188 (patch)
treee7cc9fae2ea778f0f2af4435d596b6a2348d471e /composer
parente30c75890722f964842b106ab23eb2e72d896336 (diff)
downloadgsoc2013-evolution-686337d38223cb9a1286b9ea7bbaa4763b236188.tar
gsoc2013-evolution-686337d38223cb9a1286b9ea7bbaa4763b236188.tar.gz
gsoc2013-evolution-686337d38223cb9a1286b9ea7bbaa4763b236188.tar.bz2
gsoc2013-evolution-686337d38223cb9a1286b9ea7bbaa4763b236188.tar.lz
gsoc2013-evolution-686337d38223cb9a1286b9ea7bbaa4763b236188.tar.xz
gsoc2013-evolution-686337d38223cb9a1286b9ea7bbaa4763b236188.tar.zst
gsoc2013-evolution-686337d38223cb9a1286b9ea7bbaa4763b236188.zip
Code cleanup in e-msg-composer.c
Diffstat (limited to 'composer')
-rw-r--r--composer/e-msg-composer.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 353b930a0e..fa76d83e88 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1261,8 +1261,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);
@@ -1284,18 +1285,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));
gtk_widget_show (GTK_WIDGET (composer));
}