* The reply/fw stuff now uses the text/plain part of the original message
authorSergio Villar Senin <svillar@igalia.com>
Tue, 16 Jan 2007 12:52:42 +0000 (12:52 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Tue, 16 Jan 2007 12:52:42 +0000 (12:52 +0000)
* Deleted an unused lock from the ModestTnyAccountStore

pmo-trunk-r642

src/gtk/modest-edit-msg-window.c
src/maemo/modest-edit-msg-window.c
src/modest-mail-operation.c
src/modest-tny-account-store.c

index dfd1fb4..5707116 100644 (file)
@@ -316,7 +316,7 @@ modest_edit_msg_window_set_msg (ModestEditMsgWindow *self, TnyMsg *msg)
 
        priv = MODEST_EDIT_MSG_WINDOW_GET_PRIVATE (self);
 
-       header = tny_msg_get_header (msg);
+       header  = tny_msg_get_header (msg);
        to      = tny_header_get_to (header);
        cc      = tny_header_get_cc (header);
        bcc     = tny_header_get_bcc (header);
@@ -333,7 +333,7 @@ modest_edit_msg_window_set_msg (ModestEditMsgWindow *self, TnyMsg *msg)
        
        buf = gtk_text_view_get_buffer (GTK_TEXT_VIEW(priv->msg_body));
        gtk_text_buffer_set_text (buf,
-                                 (const gchar *) modest_tny_msg_actions_find_body (msg, TRUE),
+                                 (const gchar *) modest_tny_msg_actions_find_body (msg, FALSE),
                                  -1);
 
        /* TODO: lower priority, select in the From: combo to the
index 39a431e..872a059 100644 (file)
@@ -450,7 +450,7 @@ modest_edit_msg_window_set_msg (ModestEditMsgWindow *self, TnyMsg *msg)
        
        buf = gtk_text_view_get_buffer (GTK_TEXT_VIEW(priv->msg_body));
        gtk_text_buffer_set_text (buf,
-                                 (const gchar *) modest_tny_msg_actions_find_body (msg, TRUE),
+                                 (const gchar *) modest_tny_msg_actions_find_body (msg, FALSE),
                                  -1);
 
        /* TODO: lower priority, select in the From: combo to the
index 849bed6..9d79383 100644 (file)
@@ -309,9 +309,10 @@ create_reply_forward_mail (TnyMsg *msg, const gchar *from, gboolean is_reply, gu
        TnyMimePart *body;
        ModestFormatter *formatter;
 
-       /* Get body from original msg */
+       /* Get body from original msg. Always look for the text/plain
+          part of the message to create the reply/forwarded mail */
        header = tny_msg_get_header (msg);
-       body   = modest_tny_msg_actions_find_body_part (msg, TRUE);
+       body   = modest_tny_msg_actions_find_body_part (msg, FALSE);
 
        /* TODO: select the formatter from account prefs */
        formatter = modest_formatter_new ("text/plain");
index 3bb21dd..7455bc5 100644 (file)
@@ -71,7 +71,6 @@ enum {
 
 typedef struct _ModestTnyAccountStorePrivate ModestTnyAccountStorePrivate;
 struct _ModestTnyAccountStorePrivate {
-       GMutex             *store_lock; 
        gchar              *cache_dir;
        GHashTable         *password_hash;
        TnyDevice          *device;
@@ -387,9 +386,6 @@ modest_tny_account_store_finalize (GObject *obj)
                priv->tny_session_camel = NULL;
        }
 
-       if (priv->store_lock)
-               g_mutex_free (priv->store_lock);
-
        g_free (priv->cache_dir);
        priv->cache_dir = NULL;
 
@@ -423,7 +419,6 @@ modest_tny_account_store_new (ModestAccountMgr *account_mgr) {
                                       G_CALLBACK (on_account_changed), obj);
        g_signal_connect (G_OBJECT(account_mgr), "account_removed",
                                       G_CALLBACK (on_account_removed), obj);
-       priv->store_lock = g_mutex_new ();
 
        pfact = TNY_PLATFORM_FACTORY (modest_tny_platform_factory_get_instance());
        if (!pfact) {