diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-11-11 23:27:20 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-11-11 23:27:20 +0800 |
commit | 1144e4f7de44ef8dfad796e6c79bf1e0633f5159 (patch) | |
tree | 7199d3935c6a48aeccd2a5c6b8a86b26e156fa95 /libempathy-gtk | |
parent | 10f21bd908078536dfaed58136439f9c9f4fa7ef (diff) | |
download | gsoc2013-empathy-1144e4f7de44ef8dfad796e6c79bf1e0633f5159.tar gsoc2013-empathy-1144e4f7de44ef8dfad796e6c79bf1e0633f5159.tar.gz gsoc2013-empathy-1144e4f7de44ef8dfad796e6c79bf1e0633f5159.tar.bz2 gsoc2013-empathy-1144e4f7de44ef8dfad796e6c79bf1e0633f5159.tar.lz gsoc2013-empathy-1144e4f7de44ef8dfad796e6c79bf1e0633f5159.tar.xz gsoc2013-empathy-1144e4f7de44ef8dfad796e6c79bf1e0633f5159.tar.zst gsoc2013-empathy-1144e4f7de44ef8dfad796e6c79bf1e0633f5159.zip |
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
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-avatar-chooser.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |