GNOME Bugzilla – Bug 774097
GtkPrintOperation should not truncate job names
Last modified: 2016-11-10 15:58:47 UTC
We are currently truncating job names to 255 bytes, because that's the maximum allowed length of job-name attribute in CUPS (see bug #755988). This is a CUPS limitation that GtkPrintOperation shouldn't need to know, and it shouldn't affect other backends, that might have other limitations or even no limitation at all. This has another side effect, that what you set as GtkPrintOperation:job-name could be different to what you get if the property is truncated, this is not documented in gtk_print_operation_set_job_name(). So, I think the job name should be truncated by the CUPS backend, right before setting the job-name attribute.
Created attachment 339306 [details] [review] printing: Do not truncate job names in GtkPrintOperation
Created attachment 339307 [details] [review] printing: Do not truncate job names in GtkPrintOperation
Review of attachment 339307 [details] [review]: sure, looks fine to me
Comment on attachment 339307 [details] [review] printing: Do not truncate job names in GtkPrintOperation Pushed to master and gtk-3-22 branches.