Only pass G_FILE_TEST_IS_DIR to the g_file_test calls

2006-03-18  Rodney Dawes  <dobey@novell.com>

	* gnome-wp-xml.c (gnome_wp_xml_load_list): Only pass G_FILE_TEST_IS_DIR
	to the g_file_test calls

	Fixes #331486
This commit is contained in:
Rodney Dawes 2006-03-18 19:35:40 +00:00 committed by Rodney Dawes
parent 9077cd4c5e
commit 35c0a81900
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2006-03-18 Rodney Dawes <dobey@novell.com>
* gnome-wp-xml.c (gnome_wp_xml_load_list): Only pass G_FILE_TEST_IS_DIR
to the g_file_test calls
Fixes #331486
2006-02-11 Theppitak Karoonboonyanan <thep@linux.thai.net>
* gnome-background-properties.glade: Add the missing translatable flag

View file

@ -286,7 +286,7 @@ void gnome_wp_xml_load_list (GnomeWPCapplet * capplet) {
datadir = g_build_filename (xdgdirs[i], "gnome-background-properties",
NULL);
if (g_file_test (datadir, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR)) {
if (g_file_test (datadir, G_FILE_TEST_IS_DIR)) {
gnome_vfs_directory_list_load (&list, datadir,
GNOME_VFS_FILE_INFO_DEFAULT |
GNOME_VFS_FILE_INFO_FOLLOW_LINKS);
@ -313,7 +313,7 @@ void gnome_wp_xml_load_list (GnomeWPCapplet * capplet) {
g_strfreev (xdgdirs);
g_free (xdgdirslist);
if (g_file_test (WALLPAPER_DATADIR, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR)) {
if (g_file_test (WALLPAPER_DATADIR, G_FILE_TEST_IS_DIR)) {
gnome_vfs_directory_list_load (&list, WALLPAPER_DATADIR,
GNOME_VFS_FILE_INFO_DEFAULT |
GNOME_VFS_FILE_INFO_FOLLOW_LINKS);