diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-04-01 00:08:36 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-04-01 03:48:01 +0800 |
commit | 9ed9a99baddcb87eab366e4f939dc146f2db9401 (patch) | |
tree | b4fb0824904a261fa671973d9a499ed4328c0689 /em-format/em-format-quote.c | |
parent | d15cd735886c38ac4c14faa816c307ce8f388844 (diff) | |
download | gsoc2013-evolution-9ed9a99baddcb87eab366e4f939dc146f2db9401.tar gsoc2013-evolution-9ed9a99baddcb87eab366e4f939dc146f2db9401.tar.gz gsoc2013-evolution-9ed9a99baddcb87eab366e4f939dc146f2db9401.tar.bz2 gsoc2013-evolution-9ed9a99baddcb87eab366e4f939dc146f2db9401.tar.lz gsoc2013-evolution-9ed9a99baddcb87eab366e4f939dc146f2db9401.tar.xz gsoc2013-evolution-9ed9a99baddcb87eab366e4f939dc146f2db9401.tar.zst gsoc2013-evolution-9ed9a99baddcb87eab366e4f939dc146f2db9401.zip |
EMFormat: Add "session" as a constructor property.
Pass it in instead of digging it out of EShellSettings.
Diffstat (limited to 'em-format/em-format-quote.c')
-rw-r--r-- | em-format/em-format-quote.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/em-format/em-format-quote.c b/em-format/em-format-quote.c index 4822f115d7..e21762bb95 100644 --- a/em-format/em-format-quote.c +++ b/em-format/em-format-quote.c @@ -580,18 +580,22 @@ em_format_quote_get_type (void) } EMFormatQuote * -em_format_quote_new (const gchar *credits, +em_format_quote_new (CamelSession *session, + const gchar *credits, CamelStream *stream, EMFormatQuoteFlags flags) { EMFormatQuote *emfq; + g_return_val_if_fail (CAMEL_IS_SESSION (session), NULL); g_return_val_if_fail (CAMEL_IS_STREAM (stream), NULL); /* Steam must also be seekable so we can reset its position. */ g_return_val_if_fail (G_IS_SEEKABLE (stream), NULL); - emfq = g_object_new (EM_TYPE_FORMAT_QUOTE, NULL); + emfq = g_object_new ( + EM_TYPE_FORMAT_QUOTE, + "session", session, NULL); emfq->priv->credits = g_strdup (credits); emfq->priv->flags = flags; |