aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMilan Crha <mcrha@src.gnome.org>2007-08-16 18:51:06 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-08-16 18:51:06 +0800
commitca5d6d6a338fbe5d8e6b24b85f681b9df07ce392 (patch)
tree45fb3d086d27a695be5eff6ae9f7a8d47d23fd7b /plugins
parent6ee27498e11e532a971cbb10659d754a7c2a577d (diff)
downloadgsoc2013-evolution-ca5d6d6a338fbe5d8e6b24b85f681b9df07ce392.tar.gz
gsoc2013-evolution-ca5d6d6a338fbe5d8e6b24b85f681b9df07ce392.tar.zst
gsoc2013-evolution-ca5d6d6a338fbe5d8e6b24b85f681b9df07ce392.zip
2007-08-16 mcrha Part of fix for bug #350539
svn path=/trunk/; revision=34017
Diffstat (limited to 'plugins')
-rw-r--r--plugins/audio-inline/ChangeLog7
-rw-r--r--plugins/audio-inline/audio-inline.c6
-rw-r--r--plugins/mail-to-task/ChangeLog7
-rw-r--r--plugins/mail-to-task/mail-to-task.c3
-rw-r--r--plugins/prefer-plain/ChangeLog7
-rw-r--r--plugins/prefer-plain/prefer-plain.c2
6 files changed, 29 insertions, 3 deletions
diff --git a/plugins/audio-inline/ChangeLog b/plugins/audio-inline/ChangeLog
index 98a3dbbc8f..9236ac4af8 100644
--- a/plugins/audio-inline/ChangeLog
+++ b/plugins/audio-inline/ChangeLog
@@ -1,3 +1,10 @@
+2007-08-16 Milan Crha <mcrha@redhat.com>
+
+ ** Part of fix for bug #350539
+
+ * audio-inline.c: (org_gnome_audio_inline_play_clicked):
+ Ensures non-NULL part.
+
2006-01-09 Kjartan Maraas <kmaraas@gnome.org>
* audio-inline.c: (org_gnome_audio_inline_add_button):
diff --git a/plugins/audio-inline/audio-inline.c b/plugins/audio-inline/audio-inline.c
index dd9621ce6b..615e06446c 100644
--- a/plugins/audio-inline/audio-inline.c
+++ b/plugins/audio-inline/audio-inline.c
@@ -214,14 +214,16 @@ org_gnome_audio_inline_play_clicked (GtkWidget *button, EMFormatHTMLPObject *pob
d(printf ("audio inline formatter: init gst thread\n"));
if (gst_init_check (&argc, (char ***) &argv)) {
- CamelContentType *type;
+ CamelContentType *type = NULL;
GstElement *filesrc;
/* create a disk reader */
filesrc = gst_element_factory_make ("filesrc", "disk_source");
g_object_set (G_OBJECT (filesrc), "location", po->filename, NULL);
- type = camel_mime_part_get_content_type (po->part);
+ if (po->part)
+ type = camel_mime_part_get_content_type (po->part);
+
if (type) {
if (!g_ascii_strcasecmp (type->type, "audio")) {
if (!g_ascii_strcasecmp (type->subtype, "mpeg") || !g_ascii_strcasecmp (type->subtype, "x-mpeg")
diff --git a/plugins/mail-to-task/ChangeLog b/plugins/mail-to-task/ChangeLog
index 35727aa4b1..c811d9dc7e 100644
--- a/plugins/mail-to-task/ChangeLog
+++ b/plugins/mail-to-task/ChangeLog
@@ -1,3 +1,10 @@
+2007-08-16 Milan Crha <mcrha@redhat.com>
+
+ ** Part of fix for bug #350539
+
+ * mail-to-task.c: (set_description):
+ Ensures non-NULL mime_part.
+
2007-04-02 Sankar P <psankar@novell.com>
* Committed on behalf of Gilles Dartiguelongue <dartigug@esiee.fr>
diff --git a/plugins/mail-to-task/mail-to-task.c b/plugins/mail-to-task/mail-to-task.c
index 9b3d18e7fd..0cddb62bf2 100644
--- a/plugins/mail-to-task/mail-to-task.c
+++ b/plugins/mail-to-task/mail-to-task.c
@@ -131,6 +131,9 @@ set_description (ECalComponent *comp, CamelMimeMessage *message)
count--;
}
+ if (!mime_part)
+ return;
+
type = camel_mime_part_get_content_type (mime_part);
if (!camel_content_type_is (type, "text", "plain"))
return;
diff --git a/plugins/prefer-plain/ChangeLog b/plugins/prefer-plain/ChangeLog
index da61ef43d7..3c16d88af2 100644
--- a/plugins/prefer-plain/ChangeLog
+++ b/plugins/prefer-plain/ChangeLog
@@ -1,3 +1,10 @@
+2007-08-16 Milan Crha <mcrha@redhat.com>
+
+ ** Part of fix for bug #350539
+
+ * prefer-plain.c: (org_gnome_prefer_plain_multipart_alternative):
+ Ensures non-NULL part.
+
2007-08-05 Johnny Jacob <jjohnny@novell.com>
* Committed on behalf of Anand V M <avmuttagi@gmail.com>
diff --git a/plugins/prefer-plain/prefer-plain.c b/plugins/prefer-plain/prefer-plain.c
index 515645bbad..7d967db839 100644
--- a/plugins/prefer-plain/prefer-plain.c
+++ b/plugins/prefer-plain/prefer-plain.c
@@ -66,7 +66,7 @@ org_gnome_prefer_plain_multipart_alternative(void *ep, EMFormatHookTarget *t)
nparts = camel_multipart_get_number(mp);
for (i=0; i<nparts; i++) {
part = camel_multipart_get_part(mp, i);
- if (camel_content_type_is(camel_mime_part_get_content_type(part), "text", "plain")) {
+ if (part && camel_content_type_is(camel_mime_part_get_content_type(part), "text", "plain")) {
displayid = i;
display_part = part;
break;
mit/Tools?id=a70f172ff401754bd4dc2952626c458cbdc5801a'>Add check for existing non-closed PRs related to the port being removed.vd2006-12-131-1/+65 * - add check sysvipcdinoex2006-12-041-0/+2 * Work around the fact that 5-exp, these days, is really another 6-exp,linimon2006-11-251-0/+4 * Replace a simple call to localtime() to strftime() to include theerwin2006-11-231-1/+2 * eik@ has been inactive for quite some time and as I am runningerwin2006-11-234-3/+6 * Include a time when the script was started in the mail templates.erwin2006-11-231-5/+16 * Add deprecated reason to the output of -Fvd2006-11-021-2/+6 * * Create custom commit message template and populate it with the portsvd2006-11-011-16/+88 * When checking for dependencies of foocategory/barport also find constructsvd2006-10-051-1/+1 * Since we already have the data from the grep, go ahead and make the 'latestlinimon2006-09-231-5/+4 * Add links to cvsdone and INDEX files. Add some whitespace.linimon2006-09-231-2/+17 * When checking dependencies also look for portname references in Mk/*.mkvd2006-09-141-5/+5 * * Back up duds to duds.old before, not after we create the new onekris2006-09-141-59/+81 * * When calculating the IP address to use for the jail, don't usekris2006-09-141-4/+5 * * Support bzipped logfileskris2006-09-141-122/+127 * * If .force exists, rebuild index unconditionallykris2006-09-141-5/+6 * Correct typo in previous commitkris2006-09-141-2/+2 * * Drop alpha supportkris2006-09-141-6/+7 * * Retire 4-exp builds and add support for 6-exp.kris2006-09-141-11/+12 * * Silence gconf spam from the mtree checks (for now)kris2006-09-141-4/+5 * * Use SRCBASE for source locationkris2006-09-141-6/+12 * Go back to force unmounting because not doing so was too unreliable.kris2006-09-141-2/+2 * Silence the clean-chroot invocationkris2006-09-141-1/+1 * Remove grep's -w switch from the dependency check since it misses somevd2006-09-121-1/+1 * Get rid of multiple false positives for "arch" due to compiler warning;linimon2006-08-211-3/+1 * Catch a few more new cases of linker error; reclassify most of the linkerlinimon2006-08-191-0/+4 * Add support for DESTDIR part I.erwin2006-08-041-10/+40 * Catch another case of 'disk full'.linimon2006-08-011-1/+1 * Change locking from per architecture to per architecture and branch.erwin2006-07-301-1/+2 * Add an option to the addport script: -b requests that any files inshaun2006-07-141-3/+22 * Add the cvs checkout date so people can see how long the runs take; addlinimon2006-07-131-3/+20 * Make it a little more robust.linimon2006-07-101-1/+1 * Convenience script to tersely display all currently running package builds.linimon2006-07-101-0/+11 * 'portcomment' appears to be obsolete.linimon2006-07-091-2/+0 * Fix the disk_full rule.linimon2006-07-091-1/+1 * Add the -exp builds down at the end. Probably only of interest to portmgr,linimon2006-07-081-11/+32 * White space adjustment after refactoring.linimon2006-07-081-21/+21 * Refactor. No code change (yet).linimon2006-07-081-11/+31 * Add some color to the display.linimon2006-07-061-17/+30 * Fix CVS tag.linimon2006-07-061-1/+1 * Refactor. No code changes yet.linimon2006-07-061-16/+16 * Add a column for last-date stamp and clean up the formatting a bit.linimon2006-07-061-7/+22 * Escape characters (like +) that may appear in ports' names andvd2006-07-051-2/+13 * When automatic commit log is generated, change @ to " at " on submitter emailgarga2006-07-051-0/+1 * Handle the case where the size of INDEX is zero (e.g. during new builds).linimon2006-06-291-1/+5 * Fix edit-o.linimon2006-06-281-1/+1 * Creates an HTML file with tables for each architecture which summarize thelinimon2006-06-271-0/+123 * - Remove false positives for 'makefile' (and possibly a few others).linimon2006-06-251-57/+23 * MFP4:erwin2006-06-231-1/+1 * MFP4:erwin2006-06-191-6/+24 * - Change addport script to do the job locally instead connect to freefall everygarga2006-05-162-18/+39 * Add support for specifying ports to be removed as directories on thevd2006-05-021-1/+27 * Improve dependency check:vd2006-05-021-2/+3 * Add support for removing multiple ports which depend on each othervd2006-04-171-36/+48 * Explicitly mount the NFS images ro, instead of relying on the server tokris2006-04-161-1/+1 * Don't bother archiving the ports tree, we don't use it for anything so itkris2006-04-161-1/+1 * Quote ${1} so we don't get ``[: =: unexpected operator'' if the scriptvd2006-04-121-1/+1 * Add the script I use to remove ports so everyonevd2006-04-101-0/+315 * Mount linprocfs on amd64 for the convenience of jdk builds.kris2006-04-031-1/+1 * The squid rc.d script no longer has the .sh suffixkris2006-04-032-4/+4 * Do not preserve the previous package sets in bak/. This is taking upkris2006-04-031-2/+2 * Clean up linprocfs on amd64 as well.kris2006-04-031-1/+1 * jdk is buildable on amd64, so we need to also mount linprocfs there.kris2006-04-031-2/+2 * This script preserves packages that will be removed by the restricted.shkris2006-04-031-0/+11 * Temporarily back out the pre.log change, it doesn't work properly.kris2006-03-131-6/+6 * Mount the md image async here tookris2006-03-131-1/+1 * Add some more directories temporarily until these ports can be made tokris2006-03-131-4/+8 * Add a mechanism for reporting client machine error conditions back to thekris2006-02-151-1/+14 * Trim some unused cruftkris2006-02-151-69/+12 * Save the output of portbuild run on the client to a temporary log file.kris2006-02-151-1/+11 * Add some sanity checking of the build environment:kris2006-02-151-1/+30 * * Don't try to pkg_delete packages that are not installed (the usualkris2006-02-151-6/+9 * Add support for 6-exp builds (FreeBSD 6.x is our new reference platform)kris2006-02-154-4/+14 * * Switch back to using pkg_delete -f; we are not yet ready to dealkris2006-02-141-25/+26 * * In kill_procs(), pass in the directory and mountpoint as separatekris2006-02-111-2/+8 * Support for building ports in a jail instead of a chroot. If use_jail=1kris2006-02-111-9/+14 * * Use ${mailto} portbuild.conf variable instead of hard-coded list [1]kris2006-02-111-4/+7 * Use ${mailto} portbuild.conf variable instead of hard-coded listkris2006-02-111-1/+1 * Checkpoint a major round of changes:kris2006-02-111-64/+201 * Flip from noclean to cleankris2006-02-041-3/+3 * Don't bother chowning the client /var/portbuild/, it just takes too longkris2006-02-041-3/+0 * Use clean-chroot with clean=2 to remove the chroot instead of duplicatingkris2006-02-041-5/+1 * Flip "noclean" to "clean"kris2006-02-041-3/+3 * Instead of passing in a "noclean" boolean, pass in a "clean" level:kris2006-02-041-4/+11 * Also look for chroots that are marked 'dirty' (previous build left chrootkris2006-02-041-1/+5 * Don't try to remove the lock file now that we use lockf to manage itkris2006-02-041-2/+0 * Fix bogus comments. No code change.linimon2006-02-021-5/+5 * Correctly set SRCBASE; the version inherited from buildenv is wrong forkris2006-01-281-0/+1 * Don't try to rsync docs, we no longer need to distribute themkris2006-01-281-1/+0 * Update the list of quickportskris2006-01-281-1/+1 * Warn if there are duplicate MD5/SHA256/SIZE statements for a single fileedwin2006-01-251-3/+33 * Small tool to check the necessary lines in the distinfo files, basededwin2006-01-241-0/+105 * Support 7.x INDEX buildskris2006-01-231-16/+37 * Don't bother mounting doc tree, it's not needed by any portskris2006-01-221-12/+8 * Remove -nodoccvs option, it turns out mounting the doc tree is notkris2006-01-221-14/+1 * Also clean up linprocfs mountskris2006-01-221-0/+1 * Pull in buildenv for LOCALBASE/X11BASE locationskris2006-01-221-2/+4 * Use LOCALBASE and X11BASE from buildenvkris2006-01-221-1/+4 * Allow for the possibility of overriding LOCALBASE and X11BASEkris2006-01-221-0/+2 * Exit with the correct error code when a make target failskris2006-01-151-3/+3 * Back out last commit, it was the wrong filekris2006-01-151-17/+15 * Exit with the correct error code when a make target failskris2006-01-151-15/+17