GNOME Bugzilla – Bug 143822
Be able to configure print headers
Last modified: 2020-11-24 10:00:28 UTC
This bug has been reported in the Debian BTS: http://bugs.debian.org/217024 "It would be nice to be able to configure the headers that appear when printing (they can be turned off entirely, of course). At the very least, being able to switch between displaying the entire pathname and just the filename in the headers would be much appreciated."
I agree. I have a mockup of the needed UI here: http://www.gnome.org/~paolo/screenshots/page-setup-general.png
Created attachment 102224 [details] [review] Patch file for enhancement 143822
The attached patch includes the following changes. The page setup dialog matches the suggested layout. I didn't change the highlight of the "Print syntax highlighting" text, though, because the "s" is already being used by "Do not split words...". The page header and footer field options are, "-- blank --", "File path/name", "File name", "MIME type", "Page # of #" and "Date/Time". The preference manager includes a new enum to model the field options. New code translates between the enum values and their string representations, and provides functions for getting and setting the new values. New code in the page setup dialog links the new user interface elements to the preference manager. The print routines examine the settings in the preference manager and set the header and footer field values appropriately. Note that the length of the file path and name is still limited to 60 characters, so it is possible for that field (and others, which aren't limited in length at all) to overlap others. I decided this was an issue for the user to deal with. I also modified the source for the schema to reflect these changes, although I'm not really sure what that's all about.
Hi Paul, thanks a lot for the patch... honestly I have not had the time to look at it yet, but I wanted to make you aware that we are currently revamping the printing code to port it to GtkPrint. The work in progress is available in the "printing" svn branch of gtksourceview and gedit: it's still pretty rough at the moment, but any work in this area needs to be done in this new context.
Mass-closing of all gedit bugzilla tickets. Special "code" to find again all those gedit bugzilla tickets that were open before the mass-closing: 2bfe1b0590a78457e1f1a6a90fb975f5878cb60064ccfe1d7db76ca0da52f0f3 By searching the above sha256sum in bugzilla, the gedit contributors can find again the tickets. We may be interested to do so when we work on a specific area of the code, to at least know the known problems and possible enhancements. We do this mass-closing because bugzilla.gnome.org is being replaced by gitlab.gnome.org.