From 98f4b4a74bd7492f28e1fba889ed10e9c82a7cd5 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 11 Mar 2013 13:18:57 -0400 Subject: Add ESettingsSpellEntry. Automatically configures the "checking-enabled" property on all ESpellEntry instances. --- calendar/gui/dialogs/event-page.c | 11 ----------- calendar/gui/dialogs/memo-page.c | 15 --------------- calendar/gui/dialogs/task-page.c | 15 --------------- 3 files changed, 41 deletions(-) (limited to 'calendar') diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c index 6225eb7a47..f1f7c05e89 100644 --- a/calendar/gui/dialogs/event-page.c +++ b/calendar/gui/dialogs/event-page.c @@ -2653,17 +2653,6 @@ get_widgets (EventPage *epage) gtk_entry_set_completion (GTK_ENTRY (priv->categories), completion); g_object_unref (completion); - if (priv->summary) { - EShellSettings *shell_settings; - - 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->location && priv->start_time diff --git a/calendar/gui/dialogs/memo-page.c b/calendar/gui/dialogs/memo-page.c index 7c33ec6864..c202444a2b 100644 --- a/calendar/gui/dialogs/memo-page.c +++ b/calendar/gui/dialogs/memo-page.c @@ -906,21 +906,6 @@ 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 diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c index 8cd35bda7e..1eb5f00354 100644 --- a/calendar/gui/dialogs/task-page.c +++ b/calendar/gui/dialogs/task-page.c @@ -1539,21 +1539,6 @@ 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 -- cgit v1.2.3