Fix detection of image mimetype (bug #498980)

2007-11-22  Frederic Crozat  <fcrozat@mandriva.com>

       * gnome-wp-item.c: Fix detection of image mimetype (bug #498980)

svn path=/trunk/; revision=8294
This commit is contained in:
Frederic Crozat 2007-11-23 16:26:24 +00:00 committed by Frédéric Crozat
parent 8c2ebc4ad8
commit 7514dfe2e0
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2007-11-22 Frederic Crozat <fcrozat@mandriva.com>
* gnome-wp-item.c: Fix detection of image mimetype (bug #498980)
2007-11-18 Jens Granseuer <jensgr@gmx.net>
* appearance-desktop.c: (desktop_init): add shortcut for

View file

@ -46,7 +46,7 @@ GnomeWPItem * gnome_wp_item_new (const gchar * filename,
item->fileinfo = gnome_wp_info_new (item->filename, thumbnails);
if (item->fileinfo != NULL &&
!strcmp (item->fileinfo->mime_type, "image/")) {
g_str_has_prefix (item->fileinfo->mime_type, "image/")) {
if (item->name == NULL) {
if (g_utf8_validate (item->fileinfo->name, -1, NULL))
item->name = g_strdup (item->fileinfo->name);