[gnome-text-editor] spellcheck: remove tag when invalidating
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-text-editor] spellcheck: remove tag when invalidating
- Date: Sat, 17 Jul 2021 03:01:07 +0000 (UTC)
commit d9e28b6672061c009ac7c520f26c34dabd76d822
Author: Christian Hergert <chergert redhat com>
Date: Fri Jul 16 20:00:58 2021 -0700
spellcheck: remove tag when invalidating
src/editor-text-buffer-spell-adapter.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/editor-text-buffer-spell-adapter.c b/src/editor-text-buffer-spell-adapter.c
index adf7381..4ec6702 100644
--- a/src/editor-text-buffer-spell-adapter.c
+++ b/src/editor-text-buffer-spell-adapter.c
@@ -277,6 +277,7 @@ editor_text_buffer_spell_adapter_queue_update (EditorTextBufferSpellAdapter *sel
void
editor_text_buffer_spell_adapter_invalidate_all (EditorTextBufferSpellAdapter *self)
{
+ GtkTextIter begin, end;
gsize length;
g_assert (EDITOR_IS_TEXT_BUFFER_SPELL_ADAPTER (self));
@@ -288,6 +289,9 @@ editor_text_buffer_spell_adapter_invalidate_all (EditorTextBufferSpellAdapter *s
_cjh_text_region_replace (self->region, 0, length - 1, RUN_UNCHECKED);
editor_text_buffer_spell_adapter_queue_update (self);
}
+
+ gtk_text_buffer_get_bounds (self->buffer, &begin, &end);
+ gtk_text_buffer_remove_tag (self->buffer, self->tag, &begin, &end);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]