diff options
author | Milan Crha <mcrha@redhat.com> | 2012-05-10 23:59:21 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-05-10 23:59:21 +0800 |
commit | 3c6919a70c6653c9306900b97f2896fdeed3375a (patch) | |
tree | b604601324ba1caf3aad9bfe5e50486a63356877 /calendar/gui/dialogs/memo-page.c | |
parent | 3c7cce96c0a51c908c5819479489003e5b88bf68 (diff) | |
download | gsoc2013-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/memo-page.c')
-rw-r--r-- | calendar/gui/dialogs/memo-page.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/memo-page.c b/calendar/gui/dialogs/memo-page.c index 00bf1cc79b..dcc3c94e33 100644 --- a/calendar/gui/dialogs/memo-page.c +++ b/calendar/gui/dialogs/memo-page.c @@ -47,6 +47,7 @@ #include <e-util/e-util-private.h> #include <misc/e-dateedit.h> +#include <misc/e-spell-entry.h> #include <misc/e-buffer-tagger.h> #include <libemail-utils/e-account-utils.h> @@ -893,6 +894,22 @@ get_widgets (MemoPage *mpage) gtk_entry_set_completion (GTK_ENTRY (priv->categories), completion); g_object_unref (completion); + if (priv->summary_entry) { + 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_entry, "checking-enabled", + G_BINDING_SYNC_CREATE); + } + + return (priv->memo_content && priv->categories_btn && priv->categories @@ -1234,6 +1251,11 @@ memo_page_construct (MemoPage *mpage) editor = comp_editor_page_get_editor (COMP_EDITOR_PAGE (mpage)); flags = comp_editor_get_flags (editor); + /* Make sure our custom widget classes are registered with + * GType before we load the GtkBuilder definition file. */ + E_TYPE_DATE_EDIT; + E_TYPE_SPELL_ENTRY; + priv->builder = gtk_builder_new (); e_load_ui_builder_definition (priv->builder, "memo-page.ui"); |