[gdk-pixbuf] Use g_content_type_equals to compare content types



commit 10a51a7a583e7e71e181a6967eaf60f68dc30aa2
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Sep 14 19:41:55 2010 -0400

    Use g_content_type_equals to compare content types

 gdk-pixbuf/gdk-pixbuf-io.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c
index 3b9d518..e8ce72d 100644
--- a/gdk-pixbuf/gdk-pixbuf-io.c
+++ b/gdk-pixbuf/gdk-pixbuf-io.c
@@ -821,7 +821,7 @@ _gdk_pixbuf_get_module (guchar *buffer, guint size,
                 mimes = info->mime_types;
                 for (j = 0; mimes[j] != NULL; j++) {
                         type = g_content_type_from_mime_type (mimes[j]);
-                        if (g_ascii_strcasecmp (type, mime_type) == 0) {
+                        if (g_content_type_equals (type, mime_type)) {
                                 g_free (type);
                                 selected = module;
                                 break;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]