]> git.0d.be Git - empathy.git/commitdiff
Flip iterating across format_mime_types and accepted_mime_types.
authorXavier Claessens <xclaesse@src.gnome.org>
Tue, 11 Nov 2008 15:27:20 +0000 (15:27 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Tue, 11 Nov 2008 15:27:20 +0000 (15:27 +0000)
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

index 5afda77c67ded0410cfdb26355ecb7e113ee3520..acab3e7192c39123b7d22f8b858ac854588923a8 100644 (file)
@@ -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;