aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-01-03 03:34:03 +0800
committerDan Winship <danw@src.gnome.org>2001-01-03 03:34:03 +0800
commita8b13bc0443aa150a3c007ea5e6bc48cc8ebbc51 (patch)
treeaa831be78bd6acb232c25da9a94f866ea5171a3e /composer
parent20b84e201f497ecbb1206f625e0a559398dd6d86 (diff)
downloadgsoc2013-evolution-a8b13bc0443aa150a3c007ea5e6bc48cc8ebbc51.tar.gz
gsoc2013-evolution-a8b13bc0443aa150a3c007ea5e6bc48cc8ebbc51.tar.zst
gsoc2013-evolution-a8b13bc0443aa150a3c007ea5e6bc48cc8ebbc51.zip
Use header_content_type_simple, not header_content_type_format.
* e-msg-composer-attachment.c (e_msg_composer_attachment_edit): * e-msg-composer-attachment-bar.c (update): Use header_content_type_simple, not header_content_type_format. svn path=/trunk/; revision=7215
Diffstat (limited to 'composer')
-rw-r--r--composer/ChangeLog4
-rw-r--r--composer/e-msg-composer-attachment-bar.c9
-rw-r--r--composer/e-msg-composer-attachment.c2
3 files changed, 10 insertions, 5 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index bd46df74a3..14a55ab116 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,5 +1,9 @@
2001-01-02 Dan Winship <danw@helixcode.com>
+ * e-msg-composer-attachment.c (e_msg_composer_attachment_edit):
+ * e-msg-composer-attachment-bar.c (update): Use
+ header_content_type_simple, not header_content_type_format.
+
* e-msg-composer-hdrs.c (create_dropdown_entry): Call
e_utf8_to_gtk_string on the combobox strings.
diff --git a/composer/e-msg-composer-attachment-bar.c b/composer/e-msg-composer-attachment-bar.c
index ebab16a971..d797f4aa4e 100644
--- a/composer/e-msg-composer-attachment-bar.c
+++ b/composer/e-msg-composer-attachment-bar.c
@@ -235,15 +235,13 @@ update (EMsgComposerAttachmentBar *bar)
for (p = priv->attachments; p != NULL; p = p->next) {
EMsgComposerAttachment *attachment;
const gchar *desc;
- gchar *size_string, *label, *mime_type;
+ gchar *size_string, *label;
CamelContentType *content_type;
GdkPixbuf *pixbuf;
gboolean image;
attachment = p->data;
content_type = camel_mime_part_get_content_type (attachment->body);
- mime_type = header_content_type_format (content_type);
-
/* Get the image out of the attachment
and create a thumbnail for it */
image = header_content_type_is (content_type, "image", "*");
@@ -335,14 +333,17 @@ update (EMsgComposerAttachmentBar *bar)
if (image) {
e_icon_list_append_pixbuf (icon_list, attachment->pixbuf_cache, NULL, label);
} else {
+ char *mime_type;
+
+ mime_type = header_content_type_simple (content_type);
pixbuf = pixbuf_for_mime_type (mime_type);
+ g_free (mime_type);
e_icon_list_append_pixbuf (icon_list, pixbuf,
NULL, label);
if (pixbuf)
gdk_pixbuf_unref (pixbuf);
}
- g_free (mime_type);
g_free (label);
}
diff --git a/composer/e-msg-composer-attachment.c b/composer/e-msg-composer-attachment.c
index 56a54877ce..75df63d2bd 100644
--- a/composer/e-msg-composer-attachment.c
+++ b/composer/e-msg-composer-attachment.c
@@ -399,7 +399,7 @@ e_msg_composer_attachment_edit (EMsgComposerAttachment *attachment,
set_entry (editor_gui, "description_entry",
camel_mime_part_get_description (attachment->body));
content_type = camel_mime_part_get_content_type (attachment->body);
- type = header_content_type_format (content_type);
+ type = header_content_type_simple (content_type);
set_entry (editor_gui, "mime_type_entry", type);
g_free (type);
}
lass='commitgraph'>* - Update to 0.055sunpoet2011-11-292-4/+10 * - Fix LICENSE (Artistic 1 instead of Artistic 2)culot2011-10-071-1/+1 * - Update to 0.054sunpoet2011-07-252-8/+7 * - Update to 0.053jadawin2011-07-052-3/+3 * - update to 0.052bapt2011-04-132-3/+4 * - update to 0.051bapt2011-03-172-4/+6 * - Update to 0.050wen2010-10-152-4/+4 * - Update to 0.049wen2010-09-292-5/+4 * - only 13% of the p5- ports embed @comment $FreeBSD$:pgollucci2010-09-241-1/+0 * Change dependency on old p5-Compress-Zlib, p5-IO-Compress-Base,mm2010-09-211-1/+2 * - Update to 0.048wen2010-09-213-6/+9 * Update to 0.046.tobez2010-03-292-4/+4 * Update to 0.045.tobez2010-03-022-4/+4 * Update to 0.044.tobez2009-09-042-4/+4 * - Update to 0.043jadawin2009-09-032-4/+4 * - Update 0.042jadawin2009-09-012-4/+4 * Update to 0.041.tobez2009-08-202-5/+6 * - Update to 0.040jadawin2009-04-242-4/+4 * - Update to 0.039jadawin2009-03-242-4/+4 * - Update to 0.038jadawin2009-02-192-4/+4 * - Update to 0.037jadawin2009-01-152-4/+4 * - Update to 0.035jadawin2008-12-262-4/+4 * Update to 0.034.tobez2008-11-272-4/+4 * - update to 0.033leeym2008-10-032-6/+14 * - Update to 0.032chinsan2008-08-102-4/+4 * - Update to 0.031gabor2007-12-263-6/+4 * Update to 0.030mat2007-10-302-4/+4 * - Update to 0.029clsung2007-10-152-6/+5 * - Update to 0.28erwin2007-05-262-11/+5 * - Update to 0.027clsung2007-02-042-4/+4 * Update to 0.026erwin2006-11-232-4/+4 * Update to 0.025erwin2006-11-152-4/+4 * - Update to 0.024clsung2006-09-272-5/+5