Mageia Bugzilla – Attachment 1684 Details for
Bug 4779
Landscape oriented printouts are incorrectly oriented.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
This is an optional patch to update the PS comments with actual media type.
libgnomeprint-2.18.8-ps2.patch (text/plain), 1.11 KB, created by
Alexander Zakamaldin
on 2012-03-06 04:13:12 CET
(
hide
)
Description:
This is an optional patch to update the PS comments with actual media type.
Filename:
MIME Type:
Creator:
Alexander Zakamaldin
Created:
2012-03-06 04:13:12 CET
Size:
1.11 KB
patch
obsolete
>--- ./libgnomeprint/gnome-print-ps2.c.orig 2012-02-23 00:38:27.000000000 +0600 >+++ ./libgnomeprint/gnome-print-ps2.c 2012-02-23 00:56:10.000000000 +0600 >@@ -877,6 +877,8 @@ > g_return_val_if_fail (ret != GNOME_PRINT_OK, ret); > } > >+ guchar *res = gnome_print_config_get( pc->config, ( const guchar* )GNOME_PRINT_KEY_PAPER_SIZE ); >+ > /* Do header */ > date = gnome_print_ps2_get_date (); > gnome_print_transport_printf (pc->transport, "%%!PS-Adobe-3.0" EOL); >@@ -884,8 +886,9 @@ > gnome_print_transport_printf (pc->transport, "%%%%Creator: Gnome Print Version %s" EOL, VERSION); > gnome_print_transport_printf (pc->transport, "%%%%CreationDate: %s" EOL, date); > gnome_print_transport_printf (pc->transport, "%%%%LanguageLevel: 2" EOL); >- gnome_print_transport_printf (pc->transport, "%%%%DocumentMedia: Regular %d %d 0 () ()" EOL, >+ gnome_print_transport_printf (pc->transport, "%%%%DocumentMedia: %s %d %d 0 () ()" EOL, res, > (gint) (ps2->bbox.x1 - ps2->bbox.x0), (gint) (ps2->bbox.y1 - ps2->bbox.y0)); >+ g_free( res ); > > /* Orientation ([2] Page 43) */ > gnome_print_transport_printf (pc->transport, "%%%%Orientation: ");
--- ./libgnomeprint/gnome-print-ps2.c.orig 2012-02-23 00:38:27.000000000 +0600 +++ ./libgnomeprint/gnome-print-ps2.c 2012-02-23 00:56:10.000000000 +0600 @@ -877,6 +877,8 @@ g_return_val_if_fail (ret != GNOME_PRINT_OK, ret); } + guchar *res = gnome_print_config_get( pc->config, ( const guchar* )GNOME_PRINT_KEY_PAPER_SIZE ); + /* Do header */ date = gnome_print_ps2_get_date (); gnome_print_transport_printf (pc->transport, "%%!PS-Adobe-3.0" EOL); @@ -884,8 +886,9 @@ gnome_print_transport_printf (pc->transport, "%%%%Creator: Gnome Print Version %s" EOL, VERSION); gnome_print_transport_printf (pc->transport, "%%%%CreationDate: %s" EOL, date); gnome_print_transport_printf (pc->transport, "%%%%LanguageLevel: 2" EOL); - gnome_print_transport_printf (pc->transport, "%%%%DocumentMedia: Regular %d %d 0 () ()" EOL, + gnome_print_transport_printf (pc->transport, "%%%%DocumentMedia: %s %d %d 0 () ()" EOL, res, (gint) (ps2->bbox.x1 - ps2->bbox.x0), (gint) (ps2->bbox.y1 - ps2->bbox.y0)); + g_free( res ); /* Orientation ([2] Page 43) */ gnome_print_transport_printf (pc->transport, "%%%%Orientation: ");
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 4779
:
1682
|
1683
| 1684