[gspell/wip/buffer: 3/3] text-buffer: notify when the spell checker changes
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gspell/wip/buffer: 3/3] text-buffer: notify when the spell checker changes
- Date: Mon, 28 Dec 2015 18:21:39 +0000 (UTC)
commit f3d3ca875fcd5656b42fd04d275960b8c99178ad
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon Dec 28 19:14:00 2015 +0100
text-buffer: notify when the spell checker changes
Isn't that beautiful?
gspell/gspell-text-buffer.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gspell/gspell-text-buffer.c b/gspell/gspell-text-buffer.c
index afe9412..c716915 100644
--- a/gspell/gspell-text-buffer.c
+++ b/gspell/gspell-text-buffer.c
@@ -18,6 +18,7 @@
*/
#include "gspell-text-buffer.h"
+#include "gspell-buffer-notifier.h"
/**
* SECTION:text-buffer
@@ -40,6 +41,8 @@ void
gspell_text_buffer_set_spell_checker (GtkTextBuffer *buffer,
GspellChecker *checker)
{
+ GspellBufferNotifier *notifier;
+
g_return_if_fail (GTK_IS_TEXT_BUFFER (buffer));
g_return_if_fail (checker == NULL || GSPELL_IS_CHECKER (checker));
@@ -56,6 +59,9 @@ gspell_text_buffer_set_spell_checker (GtkTextBuffer *buffer,
SPELL_CHECKER_KEY,
NULL);
}
+
+ notifier = _gspell_buffer_notifier_get_instance ();
+ _gspell_buffer_notifier_text_buffer_checker_changed (notifier, buffer, checker);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]