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 719978 - GtkTextTag: add a spell checking boolean property
GtkTextTag: add a spell checking boolean property
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
unspecified
Other All
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
: 659871 (view as bug list)
Depends on:
Blocks: gspell
 
 
Reported: 2013-12-06 14:58 UTC by Sébastien Wilmet
Modified: 2015-05-08 11:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sébastien Wilmet 2013-12-06 14:58:30 UTC
I propose to add a boolean property to GtkTextTag for the spell checking, to be able to disable the spell checking in certain regions.

By convention, the spell checking would be enabled in all the buffer, and the tag should be applied to the regions where we don't want the spell checking. If the application wants the opposite, it's not difficult to apply the negation.

The API addition:
The GtkTextTag:no-spell-check boolean property. If the property is false, it has no effects.

I think a convention is needed, because the users of this tag can be independent. For example GtkSourceView can apply this tag, and GtkSpell can read the tag, without dependencies between the two libraries.

And if one day the spell checking is implemented in GTK+, it is one thing that would anyway be needed (in this manner or another).
Comment 1 Sébastien Wilmet 2014-02-08 23:04:56 UTC
*** Bug 659871 has been marked as a duplicate of this bug. ***
Comment 2 Sébastien Wilmet 2014-12-20 15:30:27 UTC
(In reply to comment #0)
> For example GtkSourceView can apply this tag, and GtkSpell can
> read the tag, without dependencies between the two libraries.

Reading the tag can be a little difficult, since there can be several different tags with the no-spell-check property as TRUE. See the following comments at bug #629129 for a solution:

https://bugzilla.gnome.org/show_bug.cgi?id=629129#c5
https://bugzilla.gnome.org/show_bug.cgi?id=629129#c6
Comment 3 Sébastien Wilmet 2015-05-08 11:29:11 UTC
It can be more easily solved with a GtkTextTag name.