aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2009-01-22 05:03:14 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2009-01-22 05:03:14 +0800
commit3c7a575407bef757d434808904a4c4dc1ba60cb3 (patch)
treea8267e35e73894f0d8646b4d62e1df99e553572a /mail/em-format.c
parentab00f5b08adb1d74a0c70d935a32ffd982e86f34 (diff)
downloadgsoc2013-evolution-3c7a575407bef757d434808904a4c4dc1ba60cb3.tar
gsoc2013-evolution-3c7a575407bef757d434808904a4c4dc1ba60cb3.tar.gz
gsoc2013-evolution-3c7a575407bef757d434808904a4c4dc1ba60cb3.tar.bz2
gsoc2013-evolution-3c7a575407bef757d434808904a4c4dc1ba60cb3.tar.lz
gsoc2013-evolution-3c7a575407bef757d434808904a4c4dc1ba60cb3.tar.xz
gsoc2013-evolution-3c7a575407bef757d434808904a4c4dc1ba60cb3.tar.zst
gsoc2013-evolution-3c7a575407bef757d434808904a4c4dc1ba60cb3.zip
Fix some runtime warnings.
Copy that nasty message list scrolling hack to EMailShellContent. Remember the scrollbar position for each folder. Now I just have to make it select a message automatically. svn path=/branches/kill-bonobo/; revision=37119
Diffstat (limited to 'mail/em-format.c')
-rw-r--r--mail/em-format.c23
1 files changed, 4 insertions, 19 deletions
diff --git a/mail/em-format.c b/mail/em-format.c
index 4af272a3ff..ef08d206ff 100644
--- a/mail/em-format.c
+++ b/mail/em-format.c
@@ -53,6 +53,7 @@
#include "em-format.h"
#include "em-utils.h"
#include "mail-config.h"
+#include "mail-session.h"
#define d(x)
@@ -125,6 +126,9 @@ emf_init(GObject *o)
e_dlist_init(&emf->header_list);
em_format_default_headers(emf);
emf->part_id = g_string_new("");
+
+ emf->session = session;
+ camel_object_ref (emf->session);
}
static void
@@ -774,25 +778,6 @@ emf_busy(EMFormat *emf)
/* e_format_format_clone is a macro */
/**
- * em_format_set_session:
- * @emf:
- * @s:
- *
- * Set the CamelSession to be used for signature verification and decryption
- * purposes. If this is not set, then signatures cannot be verified or
- * encrypted messages viewed.
- **/
-void
-em_format_set_session(EMFormat *emf, struct _CamelSession *s)
-{
- if (s)
- camel_object_ref(s);
- if (emf->session)
- camel_object_unref(emf->session);
- emf->session = s;
-}
-
-/**
* em_format_set_mode:
* @emf:
* @type: