Display only the MIME type if there is no description

This commit is contained in:
Christian Dywan 2009-03-26 22:37:33 +01:00
parent f7c5ab216b
commit e6ea06afd3

View file

@ -1208,6 +1208,10 @@ webkit_web_view_mime_type_decision_cb (GtkWidget* web_view,
#endif #endif
description = g_content_type_get_description (content_type); description = g_content_type_get_description (content_type);
g_free (content_type); g_free (content_type);
if (g_strrstr (description, mime_type))
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
_("File Type: '%s'"), mime_type);
else
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
_("File Type: %s ('%s')"), description, mime_type); _("File Type: %s ('%s')"), description, mime_type);
g_free (description); g_free (description);