[Xfce4-commits] <midori:master> Always uncheck spelling if it is not available

Christian Dywan noreply at xfce.org
Fri Aug 5 00:04:01 CEST 2011


Updating branch refs/heads/master
         to ab22866cff0e4fcdbe2804acf478ed08c9b71be1 (commit)
       from a3ab258819cebe707e987b75b74486f159b8fd75 (commit)

commit ab22866cff0e4fcdbe2804acf478ed08c9b71be1
Author: Christian Dywan <christian at twotoasts.de>
Date:   Fri Aug 5 00:02:17 2011 +0200

    Always uncheck spelling if it is not available

 midori/midori-preferences.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/midori/midori-preferences.c b/midori/midori-preferences.c
index d03b98e..734ed16 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);
     }


More information about the Xfce4-commits mailing list