[glib] MacOS: fix content type check vs. mime check to show folder icons
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] MacOS: fix content type check vs. mime check to show folder icons
- Date: Fri, 8 Dec 2017 11:10:50 +0000 (UTC)
commit 018b997dd286248a27e80e3310fa69d595ac952a
Author: Friedrich Beckmann <friedrich beckmann gmx de>
Date: Sat Nov 4 00:34:16 2017 +0100
MacOS: fix content type check vs. mime check to show folder icons
In MacOS the file selection dialog does not show folder icons.
With this fix the folder icons are shown. The bug is described
in:
https://bugzilla.gnome.org/show_bug.cgi?id=788936
This bug fix is only partial, because this fix is only the
last resort when no mime information is available.
gio/glocalfileinfo.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c
index 75169d6..50d870f 100644
--- a/gio/glocalfileinfo.c
+++ b/gio/glocalfileinfo.c
@@ -1677,7 +1677,7 @@ get_icon_name (const char *path,
{
name = use_symbolic ? "folder-videos-symbolic" : "folder-videos";
}
- else if (g_strcmp0 (content_type, "inode/directory") == 0)
+ else if (g_content_type_is_mime_type (content_type,"inode/directory"))
{
name = use_symbolic ? "folder-symbolic" : "folder";
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]