Fix the mime sniffing test

svn path=/trunk/; revision=21038
This commit is contained in:
Matthias Clasen
2008-08-07 14:44:59 +00:00
parent 83269a5ae7
commit e4226cdc46
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-08-07 Matthias Clasen <mclasen@redhat.com>
* configure.in: Its g_content_type_from_mime_type, not
g_content_type_for_mime_type. Noticed by Roger Brown
2008-08-07 16:19:16 Tim Janik <timj@imendio.com> 2008-08-07 16:19:16 Tim Janik <timj@imendio.com>
* gdk/gdkrgb.c (gdk_rgb_select_conv): use g_error() instead of a * gdk/gdkrgb.c (gdk_rgb_select_conv): use g_error() instead of a

View File

@ -1052,7 +1052,7 @@ if test x$gio_can_sniff = x; then
char *content_type; char *content_type;
char *image_png; char *image_png;
content_type = g_content_type_guess (NULL, data, data_size, NULL); content_type = g_content_type_guess (NULL, data, data_size, NULL);
image_png = g_content_type_for_mime_type ("image/png"); image_png = g_content_type_from_mime_type ("image/png");
return !!strcmp (content_type, image_png); return !!strcmp (content_type, image_png);
}]])], }]])],
[gio_can_sniff=yes [gio_can_sniff=yes