? capplets/background/filename
Index: capplets/background/gnome-wp-info.c
===================================================================
RCS file: /cvs/gnome/gnome-control-center/capplets/background/gnome-wp-info.c,v
retrieving revision 1.1
diff -u -r1.1 gnome-wp-info.c
--- capplets/background/gnome-wp-info.c	12 Jan 2004 05:10:40 -0000	1.1
+++ capplets/background/gnome-wp-info.c	24 Feb 2004 04:27:17 -0000
@@ -29,7 +29,8 @@
   GnomeVFSResult result;
 
   info = gnome_vfs_file_info_new ();
-  result = gnome_vfs_get_file_info (uri, info,
+
+  result = gnome_vfs_get_file_info (gnome_vfs_escape_path_string (uri), info,
 				    GNOME_VFS_FILE_INFO_DEFAULT |
 				    GNOME_VFS_FILE_INFO_GET_MIME_TYPE |
 				    GNOME_VFS_FILE_INFO_FOLLOW_LINKS);
Index: capplets/background/gnome-wp-item.c
===================================================================
RCS file: /cvs/gnome/gnome-control-center/capplets/background/gnome-wp-item.c,v
retrieving revision 1.3
diff -u -r1.3 gnome-wp-item.c
--- capplets/background/gnome-wp-item.c	1 Feb 2004 20:57:47 -0000	1.3
+++ capplets/background/gnome-wp-item.c	24 Feb 2004 04:27:17 -0000
@@ -77,10 +77,10 @@
     pixbuf = gdk_pixbuf_copy (bgpixbuf);
   } else {
     pixbuf = gnome_thumbnail_factory_generate_thumbnail (thumbs,
-							 item->filename,
+							 gnome_vfs_escape_path_string(item->filename),
 							 item->fileinfo->mime_type);
     gnome_thumbnail_factory_save_thumbnail (thumbs, pixbuf,
-					    item->filename,
+					    gnome_vfs_escape_path_string (item->filename),
 					    item->fileinfo->mtime);
   }
 
@@ -103,7 +103,7 @@
       scaled = gnome_wp_pixbuf_tile (scaled, bgpixbuf);
 
       gnome_thumbnail_factory_save_thumbnail (thumbs, scaled,
-					      item->filename,
+					      gnome_vfs_escape_path_string (item->filename),
 					      item->fileinfo->mtime);
 
       w = gdk_pixbuf_get_width (scaled);
