aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/task-page.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-05-10 23:59:21 +0800
committerMilan Crha <mcrha@redhat.com>2012-05-10 23:59:21 +0800
commit3c6919a70c6653c9306900b97f2896fdeed3375a (patch)
treeb604601324ba1caf3aad9bfe5e50486a63356877 /calendar/gui/dialogs/task-page.c
parent3c7cce96c0a51c908c5819479489003e5b88bf68 (diff)
downloadgsoc2013-evolution-3c6919a70c6653c9306900b97f2896fdeed3375a.tar
gsoc2013-evolution-3c6919a70c6653c9306900b97f2896fdeed3375a.tar.gz
gsoc2013-evolution-3c6919a70c6653c9306900b97f2896fdeed3375a.tar.bz2
gsoc2013-evolution-3c6919a70c6653c9306900b97f2896fdeed3375a.tar.lz
gsoc2013-evolution-3c6919a70c6653c9306900b97f2896fdeed3375a.tar.xz
gsoc2013-evolution-3c6919a70c6653c9306900b97f2896fdeed3375a.tar.zst
gsoc2013-evolution-3c6919a70c6653c9306900b97f2896fdeed3375a.zip
Spell checking for 'Summary' in Event/Task/Memo editors
Diffstat (limited to 'calendar/gui/dialogs/task-page.c')
-rw-r--r--calendar/gui/dialogs/task-page.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c
index 27be3bd6bd..8b2bd1f98c 100644
--- a/calendar/gui/dialogs/task-page.c
+++ b/calendar/gui/dialogs/task-page.c
@@ -39,6 +39,7 @@
#include <libedataserverui/e-source-combo-box.h>
#include <misc/e-dateedit.h>
+#include <misc/e-spell-entry.h>
#include <misc/e-buffer-tagger.h>
#include <e-util/e-categories-config.h>
@@ -1516,6 +1517,21 @@ get_widgets (TaskPage *tpage)
gtk_entry_set_completion (GTK_ENTRY (priv->categories), completion);
g_object_unref (completion);
+ if (priv->summary) {
+ EShell *shell;
+ EShellSettings *shell_settings;
+ CompEditor *editor;
+
+ editor = comp_editor_page_get_editor (page);
+ shell = comp_editor_get_shell (editor);
+ shell_settings = e_shell_get_shell_settings (shell);
+
+ g_object_bind_property (
+ shell_settings, "composer-inline-spelling",
+ priv->summary, "checking-enabled",
+ G_BINDING_SYNC_CREATE);
+ }
+
return (priv->summary
&& priv->summary_label
&& priv->due_date
@@ -2143,6 +2159,7 @@ task_page_construct (TaskPage *tpage,
E_TYPE_DATE_EDIT;
E_TYPE_TIMEZONE_ENTRY;
E_TYPE_SOURCE_COMBO_BOX;
+ E_TYPE_SPELL_ENTRY;
priv->builder = gtk_builder_new ();
e_load_ui_builder_definition (priv->builder, "task-page.ui");