[gnome-commander] Use preprocessor definition for standard content type
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Use preprocessor definition for standard content type
- Date: Fri, 1 Jan 2021 21:20:22 +0000 (UTC)
commit 0e70456ca76bdc281c0eec0ea1eab1d948e190ba
Author: Uwe Scholz <u scholz83 gmx de>
Date: Wed Dec 30 16:29:19 2020 +0100
Use preprocessor definition for standard content type
src/gnome-cmd-file.cc | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index 239b9577..50e43ac7 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -276,7 +276,7 @@ void gnome_cmd_file_setup (GnomeCmdFile *gnomeCmdFile, GnomeVFSFileInfo *info, G
error = nullptr;
gnomeCmdFile->gFileInfo = g_file_query_info(gnomeCmdFile->gFile,
- "standard::content-type",
+ G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE,
G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
nullptr,
&error);
@@ -492,7 +492,7 @@ gchar *GnomeCmdFile::GetGfileContentTypeString()
GError *error;
error = nullptr;
auto gcmdFileInfo = g_file_query_info(gFile,
- "standard::content-type",
+ G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE,
G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
nullptr,
&error);
@@ -503,7 +503,7 @@ gchar *GnomeCmdFile::GetGfileContentTypeString()
exit (EXIT_FAILURE);
}
- auto gFileContentTypeString = g_strdup(g_file_info_get_attribute_string (gcmdFileInfo,
"standard::content-type"));
+ auto gFileContentTypeString = g_strdup(g_file_info_get_attribute_string (gcmdFileInfo,
G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE));
g_object_unref(gcmdFileInfo);
return gFileContentTypeString;
@@ -514,7 +514,7 @@ gchar *GnomeCmdFile::get_default_application_name_string()
{
gchar *contentType = nullptr;
- contentType = g_file_info_get_attribute_as_string (gFileInfo, "standard::content-type");
+ contentType = g_file_info_get_attribute_as_string (gFileInfo, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE);
auto appInfo = g_app_info_get_default_for_type (contentType, false);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]