From 0506d046018dd7b4198ce21d0cd2f59a4d7b05db Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 29 Apr 2009 00:42:47 +0200 Subject: [PATCH] Add Spell Checking preferences to the dialogue We need to think of a better way to choose dictionaries than a mere text entry. --- midori/midori-preferences.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/midori/midori-preferences.c b/midori/midori-preferences.c index 530de62e..fcb0f43d 100644 --- a/midori/midori-preferences.c +++ b/midori/midori-preferences.c @@ -514,6 +514,17 @@ midori_preferences_set_settings (MidoriPreferences* preferences, SPANNED_ADD (button, 0, 1, 4, 5); button = katze_property_proxy (settings, "find-while-typing", NULL); SPANNED_ADD (button, 1, 2, 4, 5); + #if WEBKIT_CHECK_VERSION (1, 1, 6) + FRAME_NEW (_("Spell Checking")); + TABLE_NEW (1, 2); + button = katze_property_proxy (settings, "enable-spell-checking", NULL); + gtk_button_set_label (GTK_BUTTON (button), _("Enable Spell Checking")); + gtk_widget_set_tooltip_text (button, _("Enables spell checking while typing")); + INDENTED_ADD (button, 0, 1, 0, 1); + entry = katze_property_proxy (settings, "spell-checking-languages", NULL); + gtk_widget_set_tooltip_text (entry, _("A comma separated list of languages to be used for spell checking")); + FILLED_ADD (entry, 1, 2, 0, 1); + #endif /* Page "Interface" */ PAGE_NEW (GTK_STOCK_CONVERT, _("Interface"));