Log in

No account? Create an account
LogJam [entries|archive|friends|userinfo]

[ website | LogJam ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

LogJam Spelling Line Question [Feb. 9th, 2007|11:17 am]


Hi folks, I've been using LogJam for a while, and I love it.

Today I compiled logjam with the --with-gtkspell option, and it worked just fine. However, I noticed that the way it flags misspelled words is with a red line. I use a black background because I am visually impaired, and I'm wondering if it's possible to change the color from red to, say, yellow or some other brighter color so I can see it easier? This might not even be a logjam issue, but a gtkspell issue, but if anyone can point me in the right direction I'd be very grateful.

From: node
2007-02-09 07:00 pm (UTC)
gtkspell 2.0's code (it's just one C file) appears to have "red" hard-coded in there. Perhaps you can install your own copy of it?
(Reply) (Thread)
From: evan
2007-02-09 08:18 pm (UTC)
The code (wow, I haven't looked at this stuff in years! it's weird to see my old comments in there) uses Pango's PANGO_UNDERLINE_ERROR (amusingly documented with a misspelled "mispelled").

Digging around some more:
uses whichever color has been specified as the renderer underline color.

From there,
The "error-underline-color" style property
"error-underline-color" GdkColor : Read
Color with which to draw error-indication underlines.

So you can change it with a GTK style override.
Here's a forum post on it:
(Reply) (Parent) (Thread)
[User Picture]From: slyfoot
2007-02-09 11:16 pm (UTC)
Great, thanks!
(Reply) (Parent) (Thread)