From ab22866cff0e4fcdbe2804acf478ed08c9b71be1 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 5 Aug 2011 00:02:17 +0200 Subject: [PATCH] Always uncheck spelling if it is not available --- midori/midori-preferences.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/midori/midori-preferences.c b/midori/midori-preferences.c index d03b98ee..734ed162 100644 --- a/midori/midori-preferences.c +++ b/midori/midori-preferences.c @@ -364,7 +364,10 @@ midori_preferences_set_settings (MidoriPreferences* preferences, { gchar* enchant_path = sokoke_find_lib_path ("enchant"); if (enchant_path == NULL) + { + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), FALSE); gtk_widget_set_sensitive (button, FALSE); + } else g_free (enchant_path); } -- 2.39.5