[gtk/wip/chergert/spellcheck] temp: set default spell checker (remove me)
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/spellcheck] temp: set default spell checker (remove me)
- Date: Tue, 30 Mar 2021 04:37:03 +0000 (UTC)
commit e5d54d17a60eb4fbb2191e1081857ddf1210f831
Author: Christian Hergert <chergert redhat com>
Date: Mon Mar 29 21:36:53 2021 -0700
temp: set default spell checker (remove me)
gtk/gtktextview.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 3350031f1c..9df7c3c6af 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -56,6 +56,7 @@
#include "gtkemojichooser.h"
#include "gtkpango.h"
#include "gtknative.h"
+#include "gtkspellcheck.h"
#include "gtkwidgetprivate.h"
/**
@@ -2208,6 +2209,8 @@ gtk_text_view_set_buffer (GtkTextView *text_view,
priv->first_para_pixels = 0;
+ /* XXX: remove me */
+ gtk_text_buffer_set_spell_checker (buffer, gtk_spell_checker_get_default ());
g_signal_connect (priv->buffer, "mark-set",
G_CALLBACK (gtk_text_view_mark_set_handler),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]