Package: python-gnome2-desktop Version: 2.18.0-2 Severity: normal Tags: upstream
Hello. It seems that the 'mask' attribute of gtksourceview.SourceTagStyle objects is not writable, but instead derived whenever SourceTagSytle.foreground or SourceTagStyle.background are set (see gtksourceview.override). I see no reason for this to be this way, since it breaks setting all three foreground, background and mask, letting the TagStyle object figure out which colors to finally use. Which works from C (it's what gedit does, see string_to_tag_style() in gedit-languages-manager.c). All this makes it necessary when working in Python code to check the value of mask, and refraining from setting foreground or background colors according to its value, which seems more unpythonic to me than having the attribute writable. Thanks. -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org If you want the holes in your knowledge showing up try teaching someone. -- Alan Cox