aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-attachment-bar.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-04-27 05:30:32 +0800
committerDan Winship <danw@src.gnome.org>2000-04-27 05:30:32 +0800
commit2a6a191e0501a677fbac59304b6bc375e221e3ec (patch)
treee352a5b911913e3254bc3c47c8315dace9bc2061 /composer/e-msg-composer-attachment-bar.c
parent2409d71026645028f49bfd0f745e93346cc17450 (diff)
downloadgsoc2013-evolution-2a6a191e0501a677fbac59304b6bc375e221e3ec.tar.gz
gsoc2013-evolution-2a6a191e0501a677fbac59304b6bc375e221e3ec.tar.zst
gsoc2013-evolution-2a6a191e0501a677fbac59304b6bc375e221e3ec.zip
Remove. We weren't using the fields that made this different from
* camel-mime-body-part.[ch]: Remove. We weren't using the fields that made this different from camel-mime-part, so it basically just forced us to do lots of gratuitous typecasting. * camel-multipart.[ch]: Use CamelMimePart. Remove the multipart parent stuff, since we weren't using that either. * etc: update for CamelMimeBodyPart -> CamelMimePart svn path=/trunk/; revision=2645
Diffstat (limited to 'composer/e-msg-composer-attachment-bar.c')
-rw-r--r--composer/e-msg-composer-attachment-bar.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/composer/e-msg-composer-attachment-bar.c b/composer/e-msg-composer-attachment-bar.c
index b83b4e1a41..212577a7ad 100644
--- a/composer/e-msg-composer-attachment-bar.c
+++ b/composer/e-msg-composer-attachment-bar.c
@@ -26,8 +26,9 @@
#include "e-msg-composer-attachment.h"
#include "e-msg-composer-attachment-bar.h"
-#include "camel/camel-simple-data-wrapper.h"
+#include "camel/camel-data-wrapper.h"
#include "camel/camel-stream-fs.h"
+#include "camel/camel-mime-part.h"
#define ICON_WIDTH 64
@@ -604,11 +605,11 @@ static void
attach_to_multipart (CamelMultipart *multipart,
EMsgComposerAttachment *attachment)
{
- CamelMimeBodyPart *part;
+ CamelMimePart *part;
struct stat st;
int fd;
- part = camel_mime_body_part_new ();
+ part = camel_mime_part_new ();
fd = open (attachment->file_name, O_RDONLY);
if (fd != -1 && fstat (fd, &st) != -1) {
char *data;
@@ -617,8 +618,7 @@ attach_to_multipart (CamelMultipart *multipart,
read (fd, data, st.st_size);
close (fd);
- camel_mime_part_set_content (CAMEL_MIME_PART (part), data,
- st.st_size,
+ camel_mime_part_set_content (part, data, st.st_size,
attachment->mime_type);
} else {
g_warning ("couldn't open %s", attachment->file_name);
@@ -626,11 +626,10 @@ attach_to_multipart (CamelMultipart *multipart,
return;
}
- camel_mime_part_set_disposition (CAMEL_MIME_PART (part), "attachment");
- camel_mime_part_set_filename (CAMEL_MIME_PART (part),
+ camel_mime_part_set_disposition (part, "attachment");
+ camel_mime_part_set_filename (part,
g_basename (attachment->file_name));
- camel_mime_part_set_description (CAMEL_MIME_PART (part),
- attachment->description);
+ camel_mime_part_set_description (part, attachment->description);
camel_multipart_add_part (multipart, part);
}
nome/commit/editors?h=mate-1.18&id=e3ef515e31c7e52799b3e5a6174dfa4151c78442'>Unbreak for amd64. A workaround is found for #i74401.maho2007-02-134-2/+34 * - Remove QTDIR from CONFIGURE_ENV, it's in there already thanks to frameworkpav2007-02-133-3/+1 * A LaTeX source editor for KDE.miwi2007-02-1211-0/+921 * Update to OOF680_m7, and broken on amd64.maho2007-02-124-12/+12 * Schedule these broken ports for removal on 2007-04-10 if they are stillkris2007-02-111-0/+2 * BROKEN: Segfault during buildkris2007-02-111-0/+2 * Fix memory limits.anray2007-02-114-0/+43 * Use libtool15 port instead of included version to avoid objformat a.out botchkris2007-02-101-0/+1 * Update to SRC680_m203.maho2007-02-108-20/+20 * - Fix build after libmytinfo removalrafan2007-02-092-1/+2 * - Update to 2.11miwi2007-02-092-9/+15 * We don't support any FreeBSD with a perl <500600 anymore.maho2007-02-089-36/+0 * Removal of FreeBSD 4 support.maho2007-02-0818-405/+0 * Update to 22.0.93anray2007-02-076-80/+20 * Version went backwards, bump PORTEPOCHlofi2007-02-061-0/+1 * Update to OOF680_m6.maho2007-02-066-42/+10 * Update to 1.5lofi2007-02-064-54/+102 * Update to SRC680_m202. Build was verified with amd64, 6.2-RELEASE.maho2007-02-058-20/+20 * - Move to LOCALBASEtmclaugh2007-02-051-7/+3 * - Update to the latest version to date, 15.0.1danfe2007-02-054-127/+132 * Fix the build after the removal of objformat.marcus2007-02-041-1/+2 * - Updated to 20070130.2255nivit2007-02-032-5/+5 * - Remove support for xfree86-3pav2007-02-031-1/+1 * - Marked BROKEN for amd64 7.Xmiwi2007-02-011-1/+5 * Update to OOF680_m5, and build fix for i386[1].maho2007-02-016-12/+44 * Update to SRC680_201. Change the version number to 2.3.${SNAPDATE}.maho2007-02-0112-88/+84 * Use libtool port instead of included version to avoid objformat a.out botchkris2007-02-013-0/+10 * Update to 2.0.3: cosmetic changes only.naddy2007-02-014-19/+18 * - add category gnustepdinoex2007-02-014-4/+4 * enhance the descriptionoliver2007-01-291-2/+4 * - Update to 4.3.p9miwi2007-01-282-4/+4 * Update to 2.2.28itetcu2007-01-282-4/+4 * - Mark as broken on 7.xjmelo2007-01-261-1/+7 * Update to OOF680_m2.maho2007-01-2410-164/+42 * Mark broken on amd64 if WITH_GTK2 is requested.arved2007-01-241-0/+3 * Update to SRC680_m200.maho2007-01-2320-236/+20 * update mousepad to 0.2.12 since 0.2.10 disappeared shortly after it wasoliver2007-01-233-4/+8 * Simple xfce editoroliver2007-01-235-0/+69 * - Update to 0.3.1miwi2007-01-229-79/+118 * - Add USE_GCC=3.4 (requires many changes to build with 4.x).alepulver2007-01-211-0/+1 * BROKEN: Unfetchablekris2007-01-201-0/+2 * Update to rospell-2007.00:itetcu2007-01-204-5/+101 * Fix plistanray2007-01-182-29/+1 * Patch denial of service vulnerability in PDF parser.lofi2007-01-186-3/+228 * - Update to 2.2.25miwi2007-01-182-4/+4 * - Reflect the reality: chinese/xcin is retired.rafan2007-01-171-3/+0 * RTLD hack is gone for FreeBSD_version >= 602103 (MFC'ed from current)maho2007-01-1720-49/+49 * Remove message catalog directory.naddy2007-01-152-0/+2 * Update to ooo-build 2.1,maho2007-01-143-37/+36 * - cleanup MASTER_SITESdinoex2007-01-141-2/+1 * Mondrian is a cross-platform project-manager and editornivit2007-01-146-0/+125 * - Change MASTERSITESacm2007-01-142-3/+2 * - update to use new bsd.gnustep.mkdinoex2007-01-132-11/+9 * - Added patch files/patch-_spe-Child.pynivit2007-01-134-10/+130 * Update to 9.5n.gj2007-01-1112-4/+52 * - fix plistitetcu2007-01-112-2/+2 * Update to SRC680_m199.maho2007-01-1020-24/+240 * Fix two security vulnerabilitymaho2007-01-093-1/+372 * Update to SRX645_m64.maho2007-01-092-6/+6 * Fix bug rev 1.292 introduced to Gvim - Escape the pipe in the menu files.obrien2007-01-091-2/+2 * * Fix WMF security vulnerabilitymaho2007-01-082-1/+171 * o Better bridge codemaho2007-01-084-42/+240 * Do not forget about #i22253# for amd64.maho2007-01-089-9/+9 * WRKDIR->WRKSRCmaho2007-01-089-9/+9 * patch-i66667 should not forget about #i22253#.maho2007-01-089-9/+9 * Add WITH_CWS knob.maho2007-01-089-2/+128 * * LOCALIZED_LANG=all knob for all the other ooo-2 ports.maho2007-01-0727-33/+372 * Add a new knob LOCALIZED_LANG=all. This builds possible languagesmaho2007-01-079-6/+90 * Snapdate is wrong 20070103 not 20060103.maho2007-01-074-4/+4 * Fix epm while packaging with deep(>255 chars) path.maho2007-01-079-0/+873 * 2006-12-27 devel/libformat: distfile and homepage disappearedmiwi2007-01-066-938/+0 * 2007-01-01 devel/kasm: Buggy and unmaintained, use devel/hptools insteadmiwi2007-01-0613-275/+0 * Fix `epm: Unable to execute "pkg_create" program: No such file or directory' ...maho2007-01-059-0/+270 * IGNORE again.maho2007-01-052-2/+2 * The rtld behaviour of FreeBSD >=700022 is now same as Solaris, andmaho2007-01-0527-443/+1721 * Use ${DESKTOPDIR} instead of using ${PREFIX}/share/applications.maho2007-01-0412-27/+36 * Update to SRC680_m198.maho2007-01-048-20/+20 * Catch up with Exuberant ctags binary name change.obrien2007-01-031-4/+14 * - FreeBSD's ctags has no -R option.stas2007-01-031-1/+7 * - Update to version 0.2.23.alepulver2007-01-0315-457/+315 * SoftMaker Office 2006 comes with the following applications:itetcu2007-01-025-0/+600 * - move to LOCALBASEitetcu2007-01-013-95/+85 * - drop obsolte patchdinoex2006-12-311-10/+0 * Add spanish to CATEGORIES now we have a virtual category.erwin2006-12-303-3/+3 * - Update to 0.17acm2006-12-293-23/+18 * marked as IGNORE, so that the pointyhat cluster won't attemptmaho2006-12-272-2/+2 * - Replace non-ascii symbols in Makefiles with asciisat2006-12-273-3/+3 * * Now we can launche OOo from menu.maho2006-12-262-0/+12 * * Update to SRC680_m197.maho2006-12-2520-1940/+36 * - update to snapshot 20061221dinoex2006-12-253-7/+14 * In preparation to deprecate shells/bash2:bsam2006-12-231-1/+1 * - update MASTER_SITEdinoex2006-12-231-1/+1 * - Deprecategabor2006-12-223-0/+9 * Etoile intends to be an innovative GNUstep based user environnement builtdinoex2006-12-22