Always uncheck spelling if it is not available

This commit is contained in:
Christian Dywan 2011-08-05 00:02:17 +02:00
parent a3ab258819
commit ab22866cff

View file

@ -364,7 +364,10 @@ midori_preferences_set_settings (MidoriPreferences* preferences,
{ {
gchar* enchant_path = sokoke_find_lib_path ("enchant"); gchar* enchant_path = sokoke_find_lib_path ("enchant");
if (enchant_path == NULL) if (enchant_path == NULL)
{
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), FALSE);
gtk_widget_set_sensitive (button, FALSE); gtk_widget_set_sensitive (button, FALSE);
}
else else
g_free (enchant_path); g_free (enchant_path);
} }