From e6ea06afd3996db46a1d70a38d92a7919f563852 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 26 Mar 2009 22:37:33 +0100 Subject: [PATCH] Display only the MIME type if there is no description --- midori/midori-view.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/midori/midori-view.c b/midori/midori-view.c index 97b7081d..e6e9f023 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -1208,8 +1208,12 @@ webkit_web_view_mime_type_decision_cb (GtkWidget* web_view, #endif description = g_content_type_get_description (content_type); g_free (content_type); - gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), - _("File Type: %s ('%s')"), description, mime_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), + _("File Type: %s ('%s')"), description, mime_type); g_free (description); gtk_window_set_skip_taskbar_hint (GTK_WINDOW (dialog), FALSE); /* i18n: A file open dialog title, ie. "Open http://fila.com/manual.tgz" */ -- 2.39.5