aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorParthasarathi Susarla <sparthasarathi@novell.com>2005-10-22 16:16:44 +0800
committerParthasarathi Susarla <saps@src.gnome.org>2005-10-22 16:16:44 +0800
commita0ce7e9771be25292bf985a96db5603b34a68d9e (patch)
tree66ede358ffcebfdaa8eed4444e06e6af32da61ca /composer/e-msg-composer.c
parenta14059d9f297b7ccbec0f4de81e1f1053da61cac (diff)
downloadgsoc2013-evolution-a0ce7e9771be25292bf985a96db5603b34a68d9e.tar.gz
gsoc2013-evolution-a0ce7e9771be25292bf985a96db5603b34a68d9e.tar.zst
gsoc2013-evolution-a0ce7e9771be25292bf985a96db5603b34a68d9e.zip
use composer->priv->charset instead of p->charset. This fixes a crash
2005-10-22 Parthasarathi Susarla <sparthasarathi@novell.com> * e-msg-composer.c: (get_file_content): use composer->priv->charset instead of p->charset. This fixes a crash svn path=/trunk/; revision=30554
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 4cc6b8ba4c..52ef59a2da 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -953,7 +953,6 @@ get_file_content (EMsgComposer *composer, const char *file_name, gboolean want_h
char *charset;
char *content;
int fd;
- EMsgComposerPrivate *p = composer->priv;
fd = open (file_name, O_RDONLY);
if (fd == -1) {
@@ -996,7 +995,7 @@ get_file_content (EMsgComposer *composer, const char *file_name, gboolean want_h
filtered_stream = camel_stream_filter_new_with_stream (stream);
camel_object_unref (stream);
- charset = composer && p->charset ? p->charset : NULL;
+ charset = composer && composer->priv->charset ? composer->priv->charset : NULL;
charset = charset ? g_strdup (charset) : composer_get_default_charset_setting ();
if ((charenc = (CamelMimeFilter *) camel_mime_filter_charset_new_convert (charset, "UTF-8"))) {
camel_stream_filter_add (filtered_stream, charenc);
@@ -2310,7 +2309,7 @@ setup_ui (EMsgComposer *composer)
bonobo_ui_component_add_listener (
p->uic, "FormatHtml",
menu_format_html_cb, composer);
-
+
/* View/From */
bonobo_ui_component_set_prop (
p->uic, "/commands/ViewFrom",