[empathy] Remove useless condition
- From: Xavier Claessens <xclaesse src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] Remove useless condition
- Date: Wed, 22 Apr 2009 06:26:51 -0400 (EDT)
commit 321919b35b06d375f3c560d6b65b4f40ee68df46
Author: Xavier Claessens <xclaesse gmail com>
Date: Wed Feb 18 01:44:20 2009 +0100
Remove useless condition
---
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 fa9fdef..df876b6 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]