[gnome-commander] Get the name of a file using GIO
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Get the name of a file using GIO
- Date: Mon, 22 Mar 2021 22:20:08 +0000 (UTC)
commit ec980d1ce70189e8521d4fc4a9238514ccc11dee
Author: Uwe Scholz <u scholz83 gmx de>
Date: Mon Mar 22 23:17:48 2021 +0100
Get the name of a file using GIO
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 58c522e4..e6266941 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 (info != NULL, NULL);
- return info->name;
+ g_return_val_if_fail (gFile != NULL, NULL);
+ return GetGfileAttributeString(G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME);
}
GnomeCmdFile *gnome_cmd_file_new_from_uri (GnomeVFSURI *uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]