* Fixes NB#90948, show messages as attachments in a viewer
authorJose Dapena Paz <jdapena@igalia.com>
Thu, 4 Dec 2008 21:08:19 +0000 (21:08 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Thu, 4 Dec 2008 21:08:19 +0000 (21:08 +0000)
pmo-drop-split-view-r6610

src/hildon2/modest-msg-view-window.c

index 9ac9bc5..3f68742 100644 (file)
@@ -2561,23 +2561,23 @@ modest_msg_view_window_view_attachment (ModestMsgViewWindow *window,
                ModestWindowMgr *mgr;
                ModestWindow *msg_win = NULL;
                gboolean found;
-               
+
                header = tny_msg_get_header (TNY_MSG (mime_part));
-               mgr = modest_runtime_get_window_mgr ();         
+               mgr = modest_runtime_get_window_mgr ();
                found = modest_window_mgr_find_registered_header (mgr, header, &msg_win);
 
                if (found) {
                        /* if it's found, but there is no msg_win, it's probably in the process of being created;
                         * thus, we don't do anything */
                        g_warning ("window for is already being created");
-               } else { 
+               } else {
                        /* it's not found, so create a new window for it */
                        modest_window_mgr_register_header (mgr, header, attachment_uid); /* register the uid before building the window */
                        gchar *account = g_strdup (modest_window_get_active_account (MODEST_WINDOW (window)));
                        if (!account)
                                account = modest_account_mgr_get_default_account (modest_runtime_get_account_mgr ());
                        msg_win = modest_msg_view_window_new_for_attachment (TNY_MSG (mime_part), account, attachment_uid);
-                       modest_window_set_zoom (MODEST_WINDOW (msg_win), 
+                       modest_window_set_zoom (MODEST_WINDOW (msg_win),
                                                modest_window_get_zoom (MODEST_WINDOW (window)));
                        modest_window_mgr_register_window (mgr, msg_win, MODEST_WINDOW (window));
                        gtk_widget_show_all (GTK_WIDGET (msg_win));