FS#32227 - [gtk2] Printing with custom paper size does not work

Attached to Project: Arch Linux
Opened by Peter Klotz (p.klotz) - Friday, 26 October 2012, 15:27 GMT
Last edited by Evangelos Foutras (foutrelis) - Monday, 11 February 2013, 03:39 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When an application sends a custom paper size to the printer, an error occurs.

This is the corresponding upstream bug which was fixed in GTK3:
https://bugzilla.gnome.org/show_bug.cgi?id=679883

However e.g. Inkscape still uses GTK2 and fails with this error.

The attached patch is extracted from the upstream bug. I successfully tested it with GTK 2.24.13.
With the patch applied Inkscape 0.48.3 prints fine.

I suggest to add the patch to the Arch GTK2 package since upstream will very likely not backport it.
The modified PKGBUILD is attached as well.
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Monday, 11 February 2013, 03:39 GMT
Reason for closing:  Fixed
Additional comments about closing:  gtk2 2.24.15-1
Comment by Peter Klotz (p.klotz) - Tuesday, 04 December 2012, 20:50 GMT
Reported an upstream bug for GTK+ 2.x:

https://bugzilla.gnome.org/show_bug.cgi?id=689658
Comment by Peter Klotz (p.klotz) - Sunday, 16 December 2012, 18:43 GMT
The upstream bug has been fixed. So the fix should be part of GTK+ 2.24.15.
Comment by Peter Klotz (p.klotz) - Sunday, 10 February 2013, 17:53 GMT
Just installed gtk2-2.24.15-1 and tested with Inkscape. The bug is fixed.

http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.15.changes

commit d9f9925878773fb37d1a385a929ddcbb4ef8fb80
Author: Marek Kasik <mkasik@redhat.com>
Date: Tue Sep 18 14:18:15 2012 +0200

printing: Add "Custom." prefix only once to paper size

Check whether "Custom." prefix is already present in the name
of selected paper size. (#679883)
(cherry picked from commit be7752183eb07274b67036362f895b31aa28eb25)

modules/printbackends/cups/gtkprintbackendcups.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Loading...