background: Avoid warning when XML file doesn't exist

This commit is contained in:
Bastien Nocera 2011-02-14 14:28:46 +00:00
parent 8eace42d8a
commit bad4e389ef

View file

@ -475,6 +475,9 @@ cc_background_xml_get_item (const char *filename)
CcBackgroundXml *xml;
CcBackgroundItem *item;
if (g_file_test (filename, G_FILE_TEST_IS_REGULAR) == FALSE)
return NULL;
xml = cc_background_xml_new ();
item = NULL;
g_signal_connect (G_OBJECT (xml), "added",