/[packages]/updates/1/libgnomeprint/current/SOURCES/libgnomeprint-2.18.8-media-type.patch
ViewVC logotype

Contents of /updates/1/libgnomeprint/current/SOURCES/libgnomeprint-2.18.8-media-type.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 219577 - (show annotations) (download)
Tue Mar 6 04:37:27 2012 UTC (9 years, 5 months ago) by fwang
File size: 1141 byte(s)
add reporter's patches to fix landscape printouts (bug#4779)

1 --- a/libgnomeprint/gnome-print-ps2.c.orig 2012-02-23 00:38:27.000000000 +0600
2 +++ b/libgnomeprint/gnome-print-ps2.c 2012-02-23 00:56:10.000000000 +0600
3 @@ -877,6 +877,8 @@
4 g_return_val_if_fail (ret != GNOME_PRINT_OK, ret);
5 }
6
7 + guchar *res = gnome_print_config_get( pc->config, ( const guchar* )GNOME_PRINT_KEY_PAPER_SIZE );
8 +
9 /* Do header */
10 date = gnome_print_ps2_get_date ();
11 gnome_print_transport_printf (pc->transport, "%%!PS-Adobe-3.0" EOL);
12 @@ -884,8 +886,9 @@
13 gnome_print_transport_printf (pc->transport, "%%%%Creator: Gnome Print Version %s" EOL, VERSION);
14 gnome_print_transport_printf (pc->transport, "%%%%CreationDate: %s" EOL, date);
15 gnome_print_transport_printf (pc->transport, "%%%%LanguageLevel: 2" EOL);
16 - gnome_print_transport_printf (pc->transport, "%%%%DocumentMedia: Regular %d %d 0 () ()" EOL,
17 + gnome_print_transport_printf (pc->transport, "%%%%DocumentMedia: %s %d %d 0 () ()" EOL, res,
18 (gint) (ps2->bbox.x1 - ps2->bbox.x0), (gint) (ps2->bbox.y1 - ps2->bbox.y0));
19 + g_free( res );
20
21 /* Orientation ([2] Page 43) */
22 gnome_print_transport_printf (pc->transport, "%%%%Orientation: ");

  ViewVC Help
Powered by ViewVC 1.1.28