diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2009-02-18 08:44:20 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2009-04-22 18:21:12 +0800 |
commit | 321919b35b06d375f3c560d6b65b4f40ee68df46 (patch) | |
tree | 9ab04af9181fd587de13e4a3130dc559607ac217 /libempathy-gtk/empathy-contact-widget.c | |
parent | 09ac5f9099d2936f6962c52e71276108aaf1bab4 (diff) | |
download | gsoc2013-empathy-321919b35b06d375f3c560d6b65b4f40ee68df46.tar gsoc2013-empathy-321919b35b06d375f3c560d6b65b4f40ee68df46.tar.gz gsoc2013-empathy-321919b35b06d375f3c560d6b65b4f40ee68df46.tar.bz2 gsoc2013-empathy-321919b35b06d375f3c560d6b65b4f40ee68df46.tar.lz gsoc2013-empathy-321919b35b06d375f3c560d6b65b4f40ee68df46.tar.xz gsoc2013-empathy-321919b35b06d375f3c560d6b65b4f40ee68df46.tar.zst gsoc2013-empathy-321919b35b06d375f3c560d6b65b4f40ee68df46.zip |
Remove useless condition
Diffstat (limited to 'libempathy-gtk/empathy-contact-widget.c')
-rw-r--r-- | libempathy-gtk/empathy-contact-widget.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c index fa9fdefeb..df876b603 100644 --- a/libempathy-gtk/empathy-contact-widget.c +++ b/libempathy-gtk/empathy-contact-widget.c @@ -760,18 +760,15 @@ static void contact_widget_avatar_changed_cb (EmpathyAvatarChooser *chooser, EmpathyContactWidget *information) { - if (information->contact && empathy_contact_is_user (information->contact)) - { - const gchar *data; - gsize size; - const gchar *mime_type; - - empathy_avatar_chooser_get_image_data ( - EMPATHY_AVATAR_CHOOSER (information->widget_avatar), - &data, &size, &mime_type); - empathy_tp_contact_factory_set_avatar (information->factory, - data, size, mime_type); - } + const gchar *data; + gsize size; + const gchar *mime_type; + + empathy_avatar_chooser_get_image_data ( + EMPATHY_AVATAR_CHOOSER (information->widget_avatar), + &data, &size, &mime_type); + empathy_tp_contact_factory_set_avatar (information->factory, + data, size, mime_type); } static gboolean |