[recipes] preferences: Add spell checking



commit 9a247f96c7e7bd433cad3756c3a5db92c2751eb3
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Dec 25 14:46:52 2016 -0500

    preferences: Add spell checking
    
    Add spell checking to the description field in the
    preferences.

 src/gr-preferences.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gr-preferences.c b/src/gr-preferences.c
index 149ab7e..2012358 100644
--- a/src/gr-preferences.c
+++ b/src/gr-preferences.c
@@ -23,6 +23,8 @@
 #include <glib/gi18n.h>
 #include <gtk/gtk.h>
 
+#include <gspell/gspell.h>
+
 #include "gr-preferences.h"
 #include "gr-chef.h"
 #include "gr-recipe-store.h"
@@ -169,6 +171,7 @@ gr_preferences_init (GrPreferences *self)
         GrRecipeStore *store;
         g_autoptr(GrChef) chef = NULL;
         const char *id;
+        GspellTextView *gspell_view;
 
         gtk_widget_init_template (GTK_WIDGET (self));
 
@@ -201,6 +204,9 @@ gr_preferences_init (GrPreferences *self)
         update_image (self);
 
         g_signal_connect_swapped (self, "delete-event", G_CALLBACK (window_close), self);
+
+        gspell_view = gspell_text_view_get_from_gtk_text_view (GTK_TEXT_VIEW (self->description));
+        gspell_text_view_basic_setup (gspell_view);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]