[gnome-text-editor] view: do not toggle spelling.correct enabled state
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-text-editor] view: do not toggle spelling.correct enabled state
- Date: Fri, 12 Nov 2021 22:03:15 +0000 (UTC)
commit c690bcf82862a5c0801732ddd13ce5ddd4cd86c7
Author: Christian Hergert <chergert redhat com>
Date: Fri Nov 12 14:02:54 2021 -0800
view: do not toggle spelling.correct enabled state
We don't need this to track enabled state and it just slows things down.
We do need it for the others though for hiding the widgets when they are
not useful.
Related #220
src/editor-source-view.c | 2 --
1 file changed, 2 deletions(-)
---
diff --git a/src/editor-source-view.c b/src/editor-source-view.c
index 0880ed8..85612f7 100644
--- a/src/editor-source-view.c
+++ b/src/editor-source-view.c
@@ -218,7 +218,6 @@ cleanup:
self->spelling_word = g_steal_pointer (&word);
gtk_widget_action_set_enabled (GTK_WIDGET (self), "spelling.add", self->spelling_word != NULL);
gtk_widget_action_set_enabled (GTK_WIDGET (self), "spelling.ignore", self->spelling_word != NULL);
- gtk_widget_action_set_enabled (GTK_WIDGET (self), "spelling.correct", self->spelling_word != NULL);
editor_spell_menu_set_corrections (self->spelling_menu,
(const char * const *)corrections);
}
@@ -530,7 +529,6 @@ editor_source_view_init (EditorSourceView *self)
gtk_widget_action_set_enabled (GTK_WIDGET (self), "spelling.add", FALSE);
gtk_widget_action_set_enabled (GTK_WIDGET (self), "spelling.ignore", FALSE);
- gtk_widget_action_set_enabled (GTK_WIDGET (self), "spelling.correct", FALSE);
self->css_provider = gtk_css_provider_new ();
style_context = gtk_widget_get_style_context (GTK_WIDGET (self));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]