# Do not load background if not needed # # https://bugs.gentoo.org/show_bug.cgi?id=251350 # http://bugzilla.gnome.org/show_bug.cgi?id=564909 --- a/libgnome-desktop/gnome-bg.c 2008-12-17 10:42:28.000000000 -0800 +++ b/libgnome-desktop/gnome-bg.c 2008-12-17 10:44:33.000000000 -0800 @@ -284,6 +284,7 @@ GnomeBGColorType ctype; GdkColor c1, c2; GnomeBGPlacement placement; + gboolean enabled; g_return_if_fail (GNOME_IS_BG (bg)); g_return_if_fail (client != NULL); @@ -291,7 +292,9 @@ /* Filename */ filename = NULL; tmp = gconf_client_get_string (client, BG_KEY_PICTURE_FILENAME, NULL); - if (tmp != NULL && *tmp != '\0') { + enabled = gconf_client_get_bool (client, BG_KEY_DRAW_BACKGROUND, NULL); + + if (tmp != NULL && *tmp != '\0' && enabled) { if (g_utf8_validate (tmp, -1, NULL) && g_file_test (tmp, G_FILE_TEST_EXISTS)) { filename = g_strdup (tmp);