Commit c515ec92 authored by Emmanuele Bassi's avatar Emmanuele Bassi Committed by Emmanuele Bassi

Bug 535830 – wrong content type adding an item

2008-05-31  Emmanuele Bassi  <ebassi@gnome.org>

	Bug 535830 – wrong content type adding an item

	* gtk/gtkrecentmanager.c:
	(gtk_recent_manager_add_item_query_info): Use the correct API
	for retrieving the fast MIME type of a URI. (Carlos Garcia
	Campos)

svn path=/trunk/; revision=20262
parent f1405056
2008-05-31 Emmanuele Bassi <ebassi@gnome.org>
Bug 535830 – wrong content type adding an item
* gtk/gtkrecentmanager.c:
(gtk_recent_manager_add_item_query_info): Use the correct API
for retrieving the fast MIME type of a URI. (Carlos Garcia
Campos)
2008-05-31 Kristian Rietveld <kris@imendio.com>
Bug 530146 - Setting non-string tooltip with
......
......@@ -764,7 +764,16 @@ gtk_recent_manager_add_item_query_info (GObject *source_object,
if (file_info)
{
recent_data.mime_type = g_content_type_get_mime_type (g_file_info_get_content_type (file_info));
gchar *content_type;
content_type = g_file_info_get_attribute_as_string (file_info, G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE);
if (G_LIKELY (content_type))
recent_data.mime_type = g_content_type_get_mime_type (content_type);
else
recent_data.mime_type = g_strdup (GTK_RECENT_DEFAULT_MIME);
g_free (content_type);
g_object_unref (file_info);
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment