aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/em-folder-view.c4
2 files changed, 6 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 2e57296605..56840d091a 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,8 @@
2004-04-12 Jeffrey Stedfast <fejj@ximian.com>
+ * em-folder-view.c (emfv_init): Need to set the session on the
+ preview object. Fixes bug #56862.
+
* em-folder-tree.c (em_folder_tree_set_selected): Scroll to the
auto-selected folder. Fixes bug #56707.
diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c
index c45c4f8cc2..e275d822bd 100644
--- a/mail/em-folder-view.c
+++ b/mail/em-folder-view.c
@@ -141,7 +141,8 @@ emfv_init(GObject *o)
{
EMFolderView *emfv = (EMFolderView *)o;
struct _EMFolderViewPrivate *p;
-
+ extern CamelSession *session;
+
gtk_box_set_homogeneous (GTK_BOX (emfv), FALSE);
p = emfv->priv = g_malloc0(sizeof(struct _EMFolderViewPrivate));
@@ -162,6 +163,7 @@ emfv_init(GObject *o)
g_signal_connect(emfv->list->tree, "key_press", G_CALLBACK(emfv_list_key_press), emfv);
emfv->preview = (EMFormatHTMLDisplay *)em_format_html_display_new();
+ em_format_set_session ((EMFormat *) emfv->preview, session);
g_signal_connect(emfv->preview, "link_clicked", G_CALLBACK(emfv_format_link_clicked), emfv);
g_signal_connect(emfv->preview, "popup_event", G_CALLBACK(emfv_format_popup_event), emfv);
g_signal_connect (emfv->preview, "on_url", G_CALLBACK (emfv_on_url_cb), emfv);