Disable the wallpaper if we couldn't load it (bg_applier_apply_prefs):

2001-12-20  Bradford Hovinen  <hovinen@ximian.com>

	* applier.c (bg_applier_apply_prefs): Disable the wallpaper if we
	couldn't load it
	(bg_applier_apply_prefs): Create a clone of the preferences
	structure first and work off of that
	(wallpaper_full_cover_p): Return FALSE if the wallpaper pixbuf is NULL
This commit is contained in:
Bradford Hovinen 2001-12-20 20:47:43 +00:00 committed by Bradford Hovinen (Gdict maintainer)
parent 894a0a1c3a
commit 064dac63c0
3 changed files with 32 additions and 16 deletions

View file

@ -239,7 +239,12 @@ bg_preferences_merge_entry (BGPreferences *prefs,
prefs->gradient_enabled = TRUE;
}
else if (!strcmp (entry->key, "/desktop/gnome/background/wallpaper-enabled")) {
prefs->wallpaper_enabled = gconf_value_get_bool (value);
if (gconf_value_get_bool (value) &&
strcmp (prefs->wallpaper_filename, "") != 0 &&
strcmp (prefs->wallpaper_filename, "(none)") != 0)
prefs->wallpaper_enabled = TRUE;
else
prefs->wallpaper_enabled = FALSE;
}
else if (!strcmp (entry->key, "/desktop/gnome/background/wallpaper-type")) {
prefs->wallpaper_type = gconf_value_get_int (value);