Revert undocumented, unapproved change from Sebastian Bacher committed on
2005-06-14 Rodney Dawes <dobey@novell.com> * gnome-wp-info.c (gnome_wp_info_new): Revert undocumented, unapproved change from Sebastian Bacher committed on 2005-05-22
This commit is contained in:
parent
8159b69ae1
commit
335381798a
2 changed files with 6 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-06-14 Rodney Dawes <dobey@novell.com>
|
||||
|
||||
* gnome-wp-info.c (gnome_wp_info_new): Revert undocumented, unapproved
|
||||
change from Sebastian Bacher committed on 2005-05-22
|
||||
|
||||
2005-02-26 Rodney Dawes <dobey@novell.com>
|
||||
|
||||
* *.[ch]: Update Copyright to include current year
|
||||
|
|
|
@ -28,15 +28,11 @@ GnomeWPInfo * gnome_wp_info_new (const gchar * uri,
|
|||
GnomeVFSFileInfo * info;
|
||||
GnomeVFSResult result;
|
||||
|
||||
gchar *escaped_uri = gnome_vfs_escape_path_string (uri);
|
||||
|
||||
info = gnome_vfs_file_info_new ();
|
||||
result = gnome_vfs_get_file_info (escaped_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);
|
||||
g_free (escaped_uri);
|
||||
|
||||
if (info == NULL || info->mime_type == NULL || result != GNOME_VFS_OK) {
|
||||
if (!strcmp (uri, "(none)")) {
|
||||
new = g_new0 (GnomeWPInfo, 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue