[gnome-text-editor] spellcheck: create tag for misspelled words
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-text-editor] spellcheck: create tag for misspelled words
- Date: Fri, 25 Jun 2021 23:57:44 +0000 (UTC)
commit be68f22dd3fc804e6ffc277c8e5db91e56a411d1
Author: Christian Hergert <chergert redhat com>
Date: Fri Jun 25 16:57:40 2021 -0700
spellcheck: create tag for misspelled words
src/editor-text-buffer-spell-adapter.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/editor-text-buffer-spell-adapter.c b/src/editor-text-buffer-spell-adapter.c
index a01175b..ffe69c3 100644
--- a/src/editor-text-buffer-spell-adapter.c
+++ b/src/editor-text-buffer-spell-adapter.c
@@ -36,6 +36,7 @@ struct _EditorTextBufferSpellAdapter
GtkTextBuffer *buffer;
EditorSpellChecker *checker;
CjhTextRegion *region;
+ GtkTextTag *tag;
guint cursor_position;
@@ -137,6 +138,10 @@ editor_text_buffer_spell_adapter_set_buffer (EditorTextBufferSpellAdapter *self,
_cjh_text_region_insert (self->region, offset, length, UNCHECKED);
+ self->tag = gtk_text_buffer_create_tag (buffer, NULL,
+ "underline", PANGO_UNDERLINE_ERROR,
+ NULL);
+
editor_text_buffer_spell_adapter_queue_update (self);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]