background: Don't show errors when loading default bg

Check whether the file exists so we don't get warnings
when loading the default wallpaper on startup.

https://bugzilla.gnome.org/show_bug.cgi?id=646056
This commit is contained in:
Bastien Nocera 2011-03-29 11:09:14 +01:00
parent c53d736d43
commit d361022907

View file

@ -485,6 +485,9 @@ cc_background_xml_load_xml (CcBackgroundXml *xml,
{
g_return_val_if_fail (CC_IS_BACKGROUND_XML (xml), FALSE);
if (g_file_test (filename, G_FILE_TEST_IS_REGULAR) == FALSE)
return NULL;
return cc_background_xml_load_xml_internal (xml, filename, FALSE);
}