[gnome-commander] Fixed problem with broken file icon after renaming a symbolic link
- From: Piotr Eljasiak <epiotr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-commander] Fixed problem with broken file icon after renaming a symbolic link
- Date: Sat, 12 Sep 2009 11:57:36 +0000 (UTC)
commit c89cdc650c3a7f2295c9e2b41b80e580ca508c66
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sat Sep 12 13:47:30 2009 +0200
Fixed problem with broken file icon after renaming a symbolic link
NEWS | 1 +
doc/C/gnome-commander.xml | 3 +++
src/gnome-cmd-file.cc | 3 ++-
3 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index f94e79e..5afd901 100644
--- a/NEWS
+++ b/NEWS
@@ -18,6 +18,7 @@ gnome-commander 1.2.8.2
Bug fixes:
* Fixed problem #591944 (permissions set to 000 after chmod)
+ * Fixed problem with broken file icon after renaming a symbolink link
===================================
diff --git a/doc/C/gnome-commander.xml b/doc/C/gnome-commander.xml
index 5f6e90c..615bde4 100644
--- a/doc/C/gnome-commander.xml
+++ b/doc/C/gnome-commander.xml
@@ -6010,6 +6010,9 @@
<listitem>
<para>Fixed problem #591944 (permissions set to 000 after chmod)</para>
</listitem>
+ <listitem>
+ <para>Fixed problem with broken file icon after renaming a symbolink link</para>
+ </listitem>
</itemizedlist>
</para>
</entry>
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index ec6bb69..e8fc0af 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -335,8 +335,9 @@ GnomeVFSResult gnome_cmd_file_rename (GnomeCmdFile *f, const gchar *new_name)
if (result==GNOME_VFS_OK) // re-read GnomeVFSFileInfo for the new MIME type
{
+ const GnomeVFSFileInfoOptions infoOpts = (GnomeVFSFileInfoOptions) (GNOME_VFS_FILE_INFO_FOLLOW_LINKS|GNOME_VFS_FILE_INFO_GET_MIME_TYPE);
uri = gnome_cmd_file_get_uri (f, new_name);
- result = gnome_vfs_get_file_info_uri (uri, new_info, GNOME_VFS_FILE_INFO_GET_MIME_TYPE);
+ result = gnome_vfs_get_file_info_uri (uri, new_info, infoOpts);
gnome_vfs_uri_unref (uri);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]