[gnome-commander] get_type_pixmap_and_mask: use gFileInfo instead of info member of GnomeCmdFile object
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] get_type_pixmap_and_mask: use gFileInfo instead of info member of GnomeCmdFile object
- Date: Sun, 16 May 2021 14:26:37 +0000 (UTC)
commit c729f8f6380a21a90fff590f4df4a92c4f3b1fc0
Author: Uwe Scholz <u scholz83 gmx de>
Date: Sun May 16 16:26:19 2021 +0200
get_type_pixmap_and_mask: use gFileInfo instead of info member of GnomeCmdFile object
src/gnome-cmd-file.cc | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index bdf6f268..2544b301 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -867,10 +867,13 @@ const gchar *GnomeCmdFile::get_type_string()
gboolean GnomeCmdFile::get_type_pixmap_and_mask(GdkPixmap **pixmap, GdkBitmap **mask)
{
- g_return_val_if_fail (info != nullptr, FALSE);
+ g_return_val_if_fail (gFileInfo != nullptr, FALSE);
return IMAGE_get_pixmap_and_mask (GetGfileAttributeUInt32(G_FILE_ATTRIBUTE_STANDARD_TYPE),
- info->mime_type, info->symlink_name != nullptr, pixmap, mask);
+ g_file_info_get_content_type(gFileInfo),
+ g_file_info_get_is_symlink (gFileInfo),
+ pixmap,
+ mask);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]