ports/mail/sylpheed/files/patch-src-printing.c
Emanuel Haupt 661c5ee217 Updated patch to fix breakage on platforms with a 64 bit time_t. This fixes a
regression that was introduced with r391392.

PR:		202832
Submitted by:	yamagi@yamagi.org
2015-09-03 12:14:25 +00:00

22 lines
921 B
C

--- src/printing.c.orig 2014-06-10 04:06:36 UTC
+++ src/printing.c
@@ -151,8 +151,6 @@ static gint layout_set_headers(PangoLayo
desc = pango_font_description_from_string(prefs_common_get()->textfont);
size = pango_font_description_get_size(desc);
- pango_font_description_free(desc);
- desc = gtkut_get_default_font_desc();
pango_font_description_set_size(desc, size);
pango_layout_set_font_description(layout, desc);
pango_font_description_free(desc);
@@ -417,10 +415,6 @@ static void draw_page(GtkPrintOperation
}
debug_print("count = %d\n", count);
- desc = gtkut_get_default_font_desc();
- pango_font_description_set_size(desc, font_size);
- pango_layout_set_font_description(layout, desc);
- pango_font_description_free(desc);
g_snprintf(buf, sizeof(buf), "- %d -", pinfo->page_nr_per_msg + 1);
pango_layout_set_text(layout, buf, -1);
pango_layout_set_alignment(layout, PANGO_ALIGN_CENTER);