[gnome-commander] Fix usage of GFileAttribute for retrieving the filename



commit 9a59a0db793fcc4d875da20e695bfd3d074d64aa
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Tue Jun 1 23:21:43 2021 +0200

    Fix usage of GFileAttribute for retrieving the filename

 src/dialogs/gnome-cmd-chmod-dialog.cc | 2 +-
 src/dialogs/gnome-cmd-chown-dialog.cc | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-chmod-dialog.cc b/src/dialogs/gnome-cmd-chmod-dialog.cc
index 1a53560ec..7a14d6ca9 100644
--- a/src/dialogs/gnome-cmd-chmod-dialog.cc
+++ b/src/dialogs/gnome-cmd-chmod-dialog.cc
@@ -89,7 +89,7 @@ static void do_chmod (GnomeCmdFile *in, guint32 permissions, gboolean recursive,
         for (GList *i = gnome_cmd_dir_get_files (dir); i; i = i->next)
         {
             GnomeCmdFile *f = (GnomeCmdFile *) i->data;
-            auto filename = GetGfileAttributeString(f->gFile, G_FILE_ATTRIBUTE_STANDARD_NAME);
+            auto filename = GetGfileAttributeString(f->gFile, G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME);
             if (!f->is_dotdot && strcmp (filename, ".") != 0
                 && !g_file_info_get_is_symlink(f->gFileInfo))
             {
diff --git a/src/dialogs/gnome-cmd-chown-dialog.cc b/src/dialogs/gnome-cmd-chown-dialog.cc
index 5e82d245e..292b4ef6c 100644
--- a/src/dialogs/gnome-cmd-chown-dialog.cc
+++ b/src/dialogs/gnome-cmd-chown-dialog.cc
@@ -67,7 +67,7 @@ static void do_chown (GnomeCmdFile *in, uid_t uid, gid_t gid, gboolean recurse)
         {
             GnomeCmdFile *f = (GnomeCmdFile *) i->data;
 
-            auto filename = GetGfileAttributeString(f->gFile, G_FILE_ATTRIBUTE_STANDARD_NAME);
+            auto filename = GetGfileAttributeString(f->gFile, G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME);
             if (!f->is_dotdot && strcmp (filename, ".") != 0
                 && !g_file_info_get_is_symlink(f->gFileInfo))
             {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]