From: Christian Dywan Date: Thu, 4 Aug 2011 22:02:17 +0000 (+0200) Subject: Always uncheck spelling if it is not available X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab22866cff0e4fcdbe2804acf478ed08c9b71be1;p=midori Always uncheck spelling if it is not available --- 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); }