Use an unknown content type if GIO fails to determine the type
This commit is contained in:
parent
2d514bfb6c
commit
3e5937fe33
1 changed files with 6 additions and 0 deletions
|
@ -2163,6 +2163,12 @@ webkit_web_view_mime_type_decision_cb (GtkWidget* web_view,
|
||||||
#else
|
#else
|
||||||
content_type = g_strdup (mime_type);
|
content_type = g_strdup (mime_type);
|
||||||
#endif
|
#endif
|
||||||
|
if (!content_type)
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
content_type = g_content_type_get_mime_type ("*");
|
||||||
|
#else
|
||||||
|
content_type = g_strdup ("application/octet-stream");
|
||||||
|
#endif
|
||||||
description = g_content_type_get_description (content_type);
|
description = g_content_type_get_description (content_type);
|
||||||
#if GTK_CHECK_VERSION (2, 14, 0)
|
#if GTK_CHECK_VERSION (2, 14, 0)
|
||||||
icon = g_content_type_get_icon (content_type);
|
icon = g_content_type_get_icon (content_type);
|
||||||
|
|
Loading…
Reference in a new issue