[recipes] edit page: Add spell checking to list headings
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] edit page: Add spell checking to list headings
- Date: Sun, 25 Dec 2016 20:05:10 +0000 (UTC)
commit ea8b334975eaf1ecd77ddc89f1df1f04ae27606a
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Dec 25 15:02:55 2016 -0500
edit page: Add spell checking to list headings
This adds spell checking to the entries we use for ingredient
list headings, if there are multiple lists.
src/gr-edit-page.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gr-edit-page.c b/src/gr-edit-page.c
index f4c18f3..ad1e173 100644
--- a/src/gr-edit-page.c
+++ b/src/gr-edit-page.c
@@ -1025,6 +1025,7 @@ add_ingredients_segment (GrEditPage *page,
GtkWidget *button;
GtkWidget *stack;
GtkWidget *image;
+ GspellEntry *gspell_entry;
segment = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_widget_set_margin_top (segment, 20);
@@ -1054,6 +1055,9 @@ add_ingredients_segment (GrEditPage *page,
gtk_widget_show (entry);
gtk_entry_set_text (GTK_ENTRY (entry), segment_label[0] ? segment_label : _("Ingredients for …"));
+ gspell_entry = gspell_entry_get_from_gtk_entry (GTK_ENTRY (entry));
+ gspell_entry_basic_setup (gspell_entry);
+
gtk_box_pack_start (GTK_BOX (box), entry, TRUE, TRUE, 0);
button = gtk_button_new_with_label (_("Remove"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]