[gnome-commander] Revert "Get the name of a file using GIO"
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Revert "Get the name of a file using GIO"
- Date: Mon, 22 Mar 2021 22:52:48 +0000 (UTC)
commit 98ad8f4b06f96c256bce378f3f44c1b331b3e515
Author: Uwe Scholz <u scholz83 gmx de>
Date: Mon Mar 22 23:50:05 2021 +0100
Revert "Get the name of a file using GIO"
This reverts commit ec980d1ce70189e8521d4fc4a9238514ccc11dee.
Have to do this for the moment as the parent dir is not shown as '..' anymore.
src/gnome-cmd-file.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-file.h b/src/gnome-cmd-file.h
index e6266941..58c522e4 100644
--- a/src/gnome-cmd-file.h
+++ b/src/gnome-cmd-file.h
@@ -120,8 +120,8 @@ struct GnomeCmdFileClass
inline gchar *GnomeCmdFile::get_name()
{
- g_return_val_if_fail (gFile != NULL, NULL);
- return GetGfileAttributeString(G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME);
+ g_return_val_if_fail (info != NULL, NULL);
+ return info->name;
}
GnomeCmdFile *gnome_cmd_file_new_from_uri (GnomeVFSURI *uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]