[gnome-commander] According to the GIO documentation, we should use the edit name here
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] According to the GIO documentation, we should use the edit name here
- Date: Thu, 24 Jun 2021 18:07:23 +0000 (UTC)
commit 71025b594da33c22d1e80f35627104d624d7ff0d
Author: Uwe Scholz <u scholz83 gmx de>
Date: Thu Jun 24 19:59:20 2021 +0200
According to the GIO documentation, we should use the edit name here
See https://developer.gnome.org/gio/stable/GFileInfo.html#G-FILE-ATTRIBUTE-STANDARD-EDIT-NAME:CAPS
src/dialogs/gnome-cmd-file-props-dialog.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/dialogs/gnome-cmd-file-props-dialog.cc b/src/dialogs/gnome-cmd-file-props-dialog.cc
index d914331d..97632785 100644
--- a/src/dialogs/gnome-cmd-file-props-dialog.cc
+++ b/src/dialogs/gnome-cmd-file-props-dialog.cc
@@ -352,7 +352,7 @@ static GtkWidget *create_properties_tab (GnomeCmdFilePropsDialogPrivate *data)
label = create_bold_label (dialog, GNOME_CMD_IS_DIR (data->f) ? _("Directory name:") : _("File name:"));
table_add (table, label, 0, y, GTK_FILL);
- data->filename_entry = create_entry (dialog, "filename_entry", data->f->get_name());
+ data->filename_entry = create_entry (dialog, "filename_entry", g_file_info_get_edit_name
(data->f->gFileInfo));
table_add (table, data->filename_entry, 1, y++, (GtkAttachOptions) (GTK_FILL|GTK_EXPAND));
gtk_editable_set_position (GTK_EDITABLE (data->filename_entry), 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]