summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2008-07-23 04:20:15 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2008-07-23 04:20:15 +0000
commit830a9d27109c68e0c40c3caa5fed94304fef1358 (patch)
tree2c40677ed8975c02ce5bf0f4431fe9f16f75c4cc /configure.in
parent7551360c1e76b9f0fd3c981639e22d2ffc9aba14 (diff)
downloadgtk+-830a9d27109c68e0c40c3caa5fed94304fef1358.tar.gz
More correct content type handling
svn path=/trunk/; revision=20897
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 5a7d937ccf..dc980446b3 100644
--- a/configure.in
+++ b/configure.in
@@ -1044,8 +1044,10 @@ int
main (int argc, char **argv)
{
char *content_type;
+ char *image_png;
content_type = g_content_type_guess (NULL, data, data_size, NULL);
- return !!strcmp (content_type, "image/png");
+ image_png = g_content_type_for_mime_type ("image/png");
+ return !!strcmp (content_type, image_png);
}]])],
[gio_can_sniff=yes
AC_DEFINE(GDK_PIXBUF_USE_GIO_MIME, 1, [Define if gio can sniff image data])],