aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-03-26 15:28:22 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-03-26 15:29:12 +0800
commit1454a06e8110fb41559e5a2f91f50e2b2bb8d4a3 (patch)
treed0171f7687b34529b8a321f7f8df32d5a048c287 /libempathy-gtk
parentfe6c5a51bad8f0e4619254eb7c1d7e40a436acd8 (diff)
downloadgsoc2013-empathy-1454a06e8110fb41559e5a2f91f50e2b2bb8d4a3.tar
gsoc2013-empathy-1454a06e8110fb41559e5a2f91f50e2b2bb8d4a3.tar.gz
gsoc2013-empathy-1454a06e8110fb41559e5a2f91f50e2b2bb8d4a3.tar.bz2
gsoc2013-empathy-1454a06e8110fb41559e5a2f91f50e2b2bb8d4a3.tar.lz
gsoc2013-empathy-1454a06e8110fb41559e5a2f91f50e2b2bb8d4a3.tar.xz
gsoc2013-empathy-1454a06e8110fb41559e5a2f91f50e2b2bb8d4a3.tar.zst
gsoc2013-empathy-1454a06e8110fb41559e5a2f91f50e2b2bb8d4a3.zip
contact_widget_contact_update: check if widget_avatar is a chooser
information->widget_avatar can actually be a EmpathyAvatarImage when displaying a read only widget. https://bugzilla.gnome.org/show_bug.cgi?id=672828
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-contact-widget.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 1bfb38749..5691891a2 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -1406,8 +1406,11 @@ contact_widget_contact_update (EmpathyContactWidget *information)
}
else
{
- empathy_avatar_chooser_set_account (
- EMPATHY_AVATAR_CHOOSER (information->widget_avatar), account);
+ if (EMPATHY_IS_AVATAR_CHOOSER (information->widget_avatar))
+ {
+ empathy_avatar_chooser_set_account (
+ EMPATHY_AVATAR_CHOOSER (information->widget_avatar), account);
+ }
if ((information->flags & EMPATHY_CONTACT_WIDGET_NO_ACCOUNT) == 0)
{