From 1144e4f7de44ef8dfad796e6c79bf1e0633f5159 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 11 Nov 2008 15:27:20 +0000 Subject: Flip iterating across format_mime_types and accepted_mime_types. This better reflects the purpose of the conditional; "for each mime type we can convert to, is it acceptable?" is clearer than "for each acceptable mime type, can we convert to it?". svn path=/trunk/; revision=1696 --- libempathy-gtk/empathy-avatar-chooser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-avatar-chooser.c b/libempathy-gtk/empathy-avatar-chooser.c index 5afda77c6..acab3e719 100644 --- a/libempathy-gtk/empathy-avatar-chooser.c +++ b/libempathy-gtk/empathy-avatar-chooser.c @@ -332,8 +332,8 @@ can_satisfy_mime_type_requirements (gchar **accepted_mime_types, } format_mime_types = gdk_pixbuf_format_get_mime_types (format); - for (strv = accepted_mime_types; *strv != NULL; strv++) { - if (str_in_strv (*strv, format_mime_types)) { + for (strv = format_mime_types; *strv != NULL; strv++) { + if (str_in_strv (*strv, accepted_mime_types)) { *satisfactory_format_name = gdk_pixbuf_format_get_name (format); *satisfactory_mime_type = g_strdup (*strv); done = TRUE; -- cgit v1.2.3