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 143822 - Be able to configure print headers
Be able to configure print headers
Product: gedit
Classification: Applications
Component: printing
git master
Other All
: Normal enhancement
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Reported: 2004-06-06 19:48 UTC by Sebastien Bacher
Modified: 2020-11-24 10:00 UTC
See Also:
GNOME target: ---
GNOME version: ---

Patch file for enhancement 143822 (70.56 KB, patch)
2008-01-05 17:36 UTC, Paul Sobolik
none Details | Review

Description Sebastien Bacher 2004-06-06 19:48:36 UTC
This bug has been reported in the Debian BTS:

"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."
Comment 1 Paolo Maggi 2004-09-22 19:40:24 UTC
I agree.

I have a mockup of the needed UI here:
Comment 2 Paul Sobolik 2008-01-05 17:36:48 UTC
Created attachment 102224 [details] [review]
Patch file for enhancement 143822
Comment 3 Paul Sobolik 2008-01-05 17:38:05 UTC
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.
Comment 4 Paolo Borelli 2008-01-09 17:50:43 UTC
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.
Comment 5 Sébastien Wilmet 2020-11-24 10:00:28 UTC
Mass-closing of all gedit bugzilla tickets.

Special "code" to find again all those gedit bugzilla tickets that were open before the mass-closing:


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 is being replaced by