[gnome-commander/gcmd-1-2-8] Fixed problem with broken file icon after renaming a symbolic link



commit 81cf270a66ae30acf3b1fa8788925fea55463972
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 53c7b4b..1f9f0db 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,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 68a1d0f..cd052b5 100644
--- a/doc/C/gnome-commander.xml
+++ b/doc/C/gnome-commander.xml
@@ -5994,6 +5994,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 561d29c..543dac9 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]