SOURCES: evolution-print-crash.patch (NEW) - fixes crash (from upstream)
megabajt
megabajt at pld-linux.org
Fri Feb 20 19:36:18 CET 2009
Author: megabajt Date: Fri Feb 20 18:36:18 2009 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fixes crash (from upstream)
---- Files affected:
SOURCES:
evolution-print-crash.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/evolution-print-crash.patch
diff -u /dev/null SOURCES/evolution-print-crash.patch:1.1
--- /dev/null Fri Feb 20 19:36:18 2009
+++ SOURCES/evolution-print-crash.patch Fri Feb 20 19:36:12 2009
@@ -0,0 +1,41 @@
+--- a/mail/em-format-html-print.c 2009/02/03 06:19:45 37216
++++ b/mail/em-format-html-print.c 2009/02/03 08:39:35 37217
+@@ -71,6 +71,7 @@
+ gtk_container_add (GTK_CONTAINER (efhp->window), html);
+ gtk_widget_realize (html);
+ efhp->parent.show_icon = FALSE;
++ ((EMFormat *)efhp)->print = TRUE;
+ }
+
+ GType
+--- a/mail/em-format-html.c 2009/02/03 06:19:45 37216
++++ b/mail/em-format-html.c 2009/02/03 08:39:35 37217
+@@ -1268,7 +1268,7 @@
+ if (handle)
+ handle->handler((EMFormat *)m->format, (CamelStream *)m->estream, (CamelMimePart *)m->message, handle);
+ handle = em_format_find_handler((EMFormat *)m->format, "x-evolution/message/post-header-closure");
+- if (handle)
++ if (handle && !((EMFormat *)m->format)->print)
+ handle->handler((EMFormat *)m->format, (CamelStream *)m->estream, (CamelMimePart *)m->message, handle);
+
+ }
+--- a/mail/em-format.c 2009/02/03 06:19:45 37216
++++ b/mail/em-format.c 2009/02/03 08:39:35 37217
+@@ -120,6 +120,7 @@
+ (GDestroyNotify) NULL,
+ (GDestroyNotify) emf_free_cache);
+ emf->composer = FALSE;
++ emf->print = FALSE;
+ emf->show_photo = TRUE;
+ emf->photo_local = TRUE;
+ e_dlist_init(&emf->header_list);
+--- a/mail/em-format.h 2009/02/03 06:19:45 37216
++++ b/mail/em-format.h 2009/02/03 08:39:35 37217
+@@ -228,6 +228,7 @@
+ char *charset; /* charset override */
+ char *default_charset; /* charset fallback */
+ gboolean composer; /* Formatting from composer ?*/
++ gboolean print;
+ gboolean show_photo; /* Want to show the photo of the sender ?*/
+ gboolean photo_local; /* Photos only from local addressbooks */
+ };
================================================================
More information about the pld-cvs-commit
mailing list