After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 635254 - Check whether a resolution is set in GtkPrintSettings before using it
Check whether a resolution is set in GtkPrintSettings before using it
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Printing
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2010-11-19 10:03 UTC by Marek Kašík
Modified: 2011-03-21 15:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
check whether a resolution is defined before setting it (2.55 KB, patch)
2010-11-19 10:03 UTC, Marek Kašík
none Details | Review

Description Marek Kašík 2010-11-19 10:03:44 UTC
Created attachment 174831 [details] [review]
check whether a resolution is defined before setting it

Current CUPS backend doesn't check whether a resolution is set in GtkPrintSettings and sets GtkPrinterOption to default resolution (300dpi) in such case. It should check it and keep ppd default value in the GtkPrinterOption if a resolution has not been set in GtkPrintSettings.
Attached patch fixes this.

This was originally reported downstream here:
https://bugzilla.redhat.com/show_bug.cgi?id=630341
Comment 1 3044cf6e49914e60efea1f82ae8a1be1 2011-03-18 11:20:43 UTC
This bug is also present in Ubuntu Maverick [1] and the fix works there too.

--
[1] https://bugs.launchpad.net/gtk/+bug/735405