From e607ae83d43972943b138915fb86b244498e8845 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 29 Nov 2013 12:59:09 +0100 Subject: Bug #329616 - Spell checking for Event/Task/Memo editors This is based on the work of Jan-Michael Brummer from bug #705338, just a little extended to be reusable across whole evolution. --- calendar/gui/dialogs/alarm-dialog.c | 3 +++ calendar/gui/dialogs/event-page.c | 4 ++++ calendar/gui/dialogs/memo-page.c | 2 ++ calendar/gui/dialogs/task-page.c | 4 ++++ 4 files changed, 13 insertions(+) (limited to 'calendar') diff --git a/calendar/gui/dialogs/alarm-dialog.c b/calendar/gui/dialogs/alarm-dialog.c index 0f96d2091e..77019b2d5a 100644 --- a/calendar/gui/dialogs/alarm-dialog.c +++ b/calendar/gui/dialogs/alarm-dialog.c @@ -1304,6 +1304,9 @@ alarm_dialog_run (GtkWidget *parent, return FALSE; } + e_spell_text_view_attach (GTK_TEXT_VIEW (dialog.dalarm_description)); + e_spell_text_view_attach (GTK_TEXT_VIEW (dialog.malarm_description)); + if (!setup_select_names (&dialog)) { g_object_unref (dialog.builder); return FALSE; diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c index f9184133bb..24cbf0906e 100644 --- a/calendar/gui/dialogs/event-page.c +++ b/calendar/gui/dialogs/event-page.c @@ -35,6 +35,8 @@ #include #include +#include "e-util/e-util.h" + #include "../e-alarm-list.h" #include "../e-meeting-attendee.h" #include "../e-meeting-list-view.h" @@ -3612,6 +3614,8 @@ event_page_construct (EventPage *epage, return NULL; } + e_spell_text_view_attach (GTK_TEXT_VIEW (priv->description)); + /* Create entry completion and attach it to the entry */ priv->location_completion = gtk_entry_completion_new (); gtk_entry_set_completion ( diff --git a/calendar/gui/dialogs/memo-page.c b/calendar/gui/dialogs/memo-page.c index 0e06d19316..e6954a11bd 100644 --- a/calendar/gui/dialogs/memo-page.c +++ b/calendar/gui/dialogs/memo-page.c @@ -1241,6 +1241,8 @@ memo_page_construct (MemoPage *mpage) return NULL; } + e_spell_text_view_attach (GTK_TEXT_VIEW (priv->memo_content)); + if (flags & COMP_EDITOR_IS_SHARED) { GtkComboBox *combo_box; GtkListStore *list_store; diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c index 3294d08d61..822cf51b7c 100644 --- a/calendar/gui/dialogs/task-page.c +++ b/calendar/gui/dialogs/task-page.c @@ -34,6 +34,8 @@ #include #include +#include "e-util/e-util.h" + #include "../e-meeting-attendee.h" #include "../e-meeting-list-view.h" #include "../e-meeting-store.h" @@ -2682,6 +2684,8 @@ task_page_construct (TaskPage *tpage, return NULL; } + e_spell_text_view_attach (GTK_TEXT_VIEW (priv->description)); + combo_box = GTK_COMBO_BOX (priv->organizer); model = gtk_combo_box_get_model (combo_box); list_store = GTK_LIST_STORE (model); -- cgit v1.2.3