aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2004-04-13 04:21:37 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-04-13 04:21:37 +0800
commitec7893f39fd19e48881491c6b577a98ab125f8a7 (patch)
treefd17d710c22e1271393e7e7d975847eec7ea35a3
parentce0f8cd06e231e2fc125401a4339b5e628cd9ffd (diff)
downloadgsoc2013-evolution-ec7893f39fd19e48881491c6b577a98ab125f8a7.tar.gz
gsoc2013-evolution-ec7893f39fd19e48881491c6b577a98ab125f8a7.tar.zst
gsoc2013-evolution-ec7893f39fd19e48881491c6b577a98ab125f8a7.zip
Need to set the session on the preview object. Fixes bug #56862.
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. svn path=/trunk/; revision=25419
-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);