diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-03-22 16:10:52 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2021-01-21 15:31:12 +0100 |
commit | 830eba3a06506fd5ac527a74c8ce4ad5ba39cbf0 (patch) | |
tree | 022b90b826667940499c49f39506e19e4c7ad213 /main/src/ui/chat_input/chat_text_view.vala | |
parent | f94d8f56c79b0fe792b471a2423edb7beb4abd89 (diff) | |
download | dino-830eba3a06506fd5ac527a74c8ce4ad5ba39cbf0.tar.gz dino-830eba3a06506fd5ac527a74c8ce4ad5ba39cbf0.zip |
Add spell-checking using Gspell
Diffstat (limited to 'main/src/ui/chat_input/chat_text_view.vala')
-rw-r--r-- | main/src/ui/chat_input/chat_text_view.vala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/src/ui/chat_input/chat_text_view.vala b/main/src/ui/chat_input/chat_text_view.vala index 8d5cb7a1..2f8393d2 100644 --- a/main/src/ui/chat_input/chat_text_view.vala +++ b/main/src/ui/chat_input/chat_text_view.vala @@ -39,6 +39,7 @@ public class ChatTextView : ScrolledWindow { private int vscrollbar_min_height; private SmileyConverter smiley_converter; public EditHistory edit_history; + private SpellChecker spell_checker; construct { max_content_height = 300; @@ -47,6 +48,7 @@ public class ChatTextView : ScrolledWindow { smiley_converter = new SmileyConverter(text_view); edit_history = new EditHistory(text_view); + spell_checker = new SpellChecker(text_view); this.get_vscrollbar().get_preferred_height(out vscrollbar_min_height, null); this.vadjustment.notify["upper"].connect_after(on_upper_notify); @@ -57,6 +59,7 @@ public class ChatTextView : ScrolledWindow { public void initialize_for_conversation(Conversation conversation) { edit_history.initialize_for_conversation(conversation); + spell_checker.initialize_for_conversation(conversation); } public override void get_preferred_height(out int min_height, out int nat_height) { |