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 728180 - Printing syntax highlighting in color doesn't work anymore
Printing syntax highlighting in color doesn't work anymore
Status: RESOLVED FIXED
Product: gtksourceview
Classification: Platform
Component: General
3.10.x
Other Linux
: Normal normal
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2014-04-14 13:36 UTC by Gnewbee
Modified: 2014-04-14 17:04 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Gnewbee 2014-04-14 13:36:36 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
Comment 1 Sébastien Wilmet 2014-04-14 14:05:14 UTC
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).
Comment 2 Sébastien Wilmet 2014-04-14 15:14:55 UTC
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.
Comment 3 Sébastien Wilmet 2014-04-14 15:20:01 UTC
The culprit commit is 59c4e79123c55e2a492ecbff2fe42be92e702377.
"Use GdkRGBA properties of GtkTextTag"
Comment 4 Sébastien Wilmet 2014-04-14 15:50:25 UTC
Fixed:
https://git.gnome.org/browse/gtksourceview/commit/?id=bb16be551274521952a0d9e2ff6af1c04d3a4031

Thanks for the bug report.
Comment 5 Gnewbee 2014-04-14 17:04:22 UTC
Just compiled and included the patch. It works for me.

Thanks for the very quick reply.