diff options
author | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-11-11 23:27:20 +0800 |
---|---|---|
committer | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-11-11 23:27:20 +0800 |
commit | 08837770a6c5c91ebd13924a3bbe866c161b4fa3 (patch) | |
tree | 7199d3935c6a48aeccd2a5c6b8a86b26e156fa95 | |
parent | edacb09ad296a537867bfa36a675ceda094705d9 (diff) | |
download | gsoc2013-empathy-08837770a6c5c91ebd13924a3bbe866c161b4fa3.tar gsoc2013-empathy-08837770a6c5c91ebd13924a3bbe866c161b4fa3.tar.gz gsoc2013-empathy-08837770a6c5c91ebd13924a3bbe866c161b4fa3.tar.bz2 gsoc2013-empathy-08837770a6c5c91ebd13924a3bbe866c161b4fa3.tar.lz gsoc2013-empathy-08837770a6c5c91ebd13924a3bbe866c161b4fa3.tar.xz gsoc2013-empathy-08837770a6c5c91ebd13924a3bbe866c161b4fa3.tar.zst gsoc2013-empathy-08837770a6c5c91ebd13924a3bbe866c161b4fa3.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?".
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@1696 4ee84921-47dd-4033-b63a-18d7a039a3e4
-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; |