?

Log in

No account? Create an account
LogJam Spelling Line Question - LogJam [entries|archive|friends|userinfo]
LogJam

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

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

logjam

[slyfoot]
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.
LinkReply

Comments:
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:
http://www.google.com/codesearch?hl=en&q=+package:pango+renderer_draw_error_underline+show:u3KbXlxzh9E:h6qQA-TL_3A:gPJVyDNYIjA&sa=N&cd=3&ct=rc&cs_p=http://download.gnome.org/sources/pango/1.12/pango-1.12.4.tar.gz&cs_f=pango-1.12.4/pango/pangocairo-render.c#a0
uses whichever color has been specified as the renderer underline color.

From there,
http://developer.gnome.org/doc/API/2.0/gtk/GtkTextView.html#id3036179
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:
http://gnomesupport.org/forums/viewtopic.php?t=12270
(Reply) (Parent) (Thread)
[User Picture]From: slyfoot
2007-02-09 11:16 pm (UTC)
Great, thanks!
(Reply) (Parent) (Thread)