GNOME Bugzilla – Bug 728180
Printing syntax highlighting in color doesn't work anymore
Last modified: 2014-04-14 17:04:22 UTC
Os: GNU/Linux Debian Jessie 64 Desktop: xfce4.10 Printing does not print syntax highlighting. This feature used to work on the same machine earlier (regression ?). The document is printed (either preview, pdf/ps or paper) with text in black, over white background with some keywords in bold. The option "print syntax highlighting" in the print>text editor menu is enabled. (The bold text becomes normal text without it). In print > colour, "print color as gray" is set to "off". Tried with different themes (dark or light) and different languages to no avail. Tried on 2 different machines with the same result (similar install though). Best, Gnewbee
I confirm this bug with gedit 3.12. With gedit 3.8 it doesn't occur. It is probably a bug in GtkSourceView or GTK+. (in gtksourceview the code didn't really change since a long time for the printing).
GtkSourceView 3.8, GTK+ 3.12: OK GtkSourceView 3.10, GTK+ 3.12: KO This is probably a regression between gsv 3.8 and 3.10.
The culprit commit is 59c4e79123c55e2a492ecbff2fe42be92e702377. "Use GdkRGBA properties of GtkTextTag"
Fixed: https://git.gnome.org/browse/gtksourceview/commit/?id=bb16be551274521952a0d9e2ff6af1c04d3a4031 Thanks for the bug report.
Just compiled and included the patch. It works for me. Thanks for the very quick reply.