aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2013-11-29 19:59:09 +0800
committerMilan Crha <mcrha@redhat.com>2013-11-29 19:59:09 +0800
commite607ae83d43972943b138915fb86b244498e8845 (patch)
treec080cef975bfa4c6724a62636f426f1099b4cdae /calendar
parentc12a958aba0bac2b665cc8a5a3cae2f10d16dd71 (diff)
downloadgsoc2013-evolution-e607ae83d43972943b138915fb86b244498e8845.tar
gsoc2013-evolution-e607ae83d43972943b138915fb86b244498e8845.tar.gz
gsoc2013-evolution-e607ae83d43972943b138915fb86b244498e8845.tar.bz2
gsoc2013-evolution-e607ae83d43972943b138915fb86b244498e8845.tar.lz
gsoc2013-evolution-e607ae83d43972943b138915fb86b244498e8845.tar.xz
gsoc2013-evolution-e607ae83d43972943b138915fb86b244498e8845.tar.zst
gsoc2013-evolution-e607ae83d43972943b138915fb86b244498e8845.zip
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.
Diffstat (limited to 'calendar')
-rw-r--r--calendar/gui/dialogs/alarm-dialog.c3
-rw-r--r--calendar/gui/dialogs/event-page.c4
-rw-r--r--calendar/gui/dialogs/memo-page.c2
-rw-r--r--calendar/gui/dialogs/task-page.c4
4 files changed, 13 insertions, 0 deletions
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 <glib/gi18n.h>
#include <gdk/gdkkeysyms.h>
+#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 <glib/gi18n.h>
#include <gdk/gdkkeysyms.h>
+#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);