After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 535830 - wrong content type adding an item
wrong content type adding an item
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Class: GtkRecent
2.13.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Emmanuele Bassi (:ebassi)
Depends on:
Blocks:
 
 
Reported: 2008-05-30 18:51 UTC by Carlos Garcia Campos
Modified: 2008-05-31 18:54 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
Patch (685 bytes, patch)
2008-05-30 18:53 UTC, Carlos Garcia Campos
committed Details | Review

Description Carlos Garcia Campos 2008-05-30 18:51:53 UTC
In gtk_recent_manager_add_item, g_file_query_info_async is used with fast_content_type attribute, but in the callback function g_file_info_get_content_type() is called in order to get the content type. That's wrong because such function returns the content_type attribute, but not the fast_content_type.
Comment 1 Carlos Garcia Campos 2008-05-30 18:53:11 UTC
Created attachment 111818 [details] [review]
Patch

This patch fixes the problem
Comment 2 Emmanuele Bassi (:ebassi) 2008-05-31 18:54:46 UTC
thanks, fixed in trunk.

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)