mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-11-04 10:08:56 +01:00 
			
		
		
		
	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.
This commit is contained in:
		
				
					committed by
					
						
						Philip Withnall
					
				
			
			
				
	
			
			
			
						parent
						
							62dece198b
						
					
				
				
					commit
					018b997dd2
				
			@@ -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";
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user