diff --git a/ChangeLog b/ChangeLog index 617e11ac4..9a0b5fca6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,8 @@ * capplets/new-background-properties/preferences.c (preferences_changed): Increased delay before autoapply + (preferences_load): + (preferences_save): Use string rather than bool for auto_apply * capplets/new-background-properties/prefs-widget.c (auto_apply_toggled_cb): Implement diff --git a/capplets/background/preferences.c b/capplets/background/preferences.c index d684ec375..64b6aa98c 100644 --- a/capplets/background/preferences.c +++ b/capplets/background/preferences.c @@ -216,8 +216,13 @@ preferences_load (Preferences *prefs) gnome_config_get_string ("/Background/Default/wallpapers_dir=./"); - prefs->auto_apply = - gnome_config_get_bool ("/Background/Default/autoApply=true"); + string = gnome_config_get_string + ("/Background/Default/autoApply=true"); + if (!g_strcasecmp (string, "true")) + prefs->auto_apply = TRUE; + else if (g_strcasecmp (string, "false")) + prefs->auto_apply = FALSE; + g_free (string); if (!g_strcasecmp (prefs->wallpaper_filename, "none")) { g_free(prefs->wallpaper_filename); @@ -263,8 +268,8 @@ preferences_save (Preferences *prefs) gnome_config_set_int ("/Background/Default/wallpaperAlign", prefs->wallpaper_type); - gnome_config_set_bool ("/Background/Default/autoApply", - prefs->auto_apply); + gnome_config_set_string ("/Background/Default/autoApply", + prefs->auto_apply ? "True" : "False"); gnome_config_sync (); }