diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-03-23 18:55:34 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-03-26 14:44:51 +0800 |
commit | 1668f347aa125864384deee91b74cc85be781941 (patch) | |
tree | 866141f8f3ad24c3f0d73eb439b0082b8b4dbebd /libempathy-gtk/empathy-contact-widget.c | |
parent | 51924be1d13bdcd2379059c0725eb8b92e3b50da (diff) | |
download | gsoc2013-empathy-1668f347aa125864384deee91b74cc85be781941.tar gsoc2013-empathy-1668f347aa125864384deee91b74cc85be781941.tar.gz gsoc2013-empathy-1668f347aa125864384deee91b74cc85be781941.tar.bz2 gsoc2013-empathy-1668f347aa125864384deee91b74cc85be781941.tar.lz gsoc2013-empathy-1668f347aa125864384deee91b74cc85be781941.tar.xz gsoc2013-empathy-1668f347aa125864384deee91b74cc85be781941.tar.zst gsoc2013-empathy-1668f347aa125864384deee91b74cc85be781941.zip |
contact_widget_contact_update: change 'if else' block to a 'if' block inside the 'else'
No semantic change.
https://bugzilla.gnome.org/show_bug.cgi?id=672633
Diffstat (limited to 'libempathy-gtk/empathy-contact-widget.c')
-rw-r--r-- | libempathy-gtk/empathy-contact-widget.c | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c index 90cb31f43..28b4adb60 100644 --- a/libempathy-gtk/empathy-contact-widget.c +++ b/libempathy-gtk/empathy-contact-widget.c @@ -1404,18 +1404,23 @@ contact_widget_contact_update (EmpathyContactWidget *information) contact_widget_change_contact, information); } } - else if ((information->flags & EMPATHY_CONTACT_WIDGET_NO_ACCOUNT) == 0) + else { - if (account) + if ((information->flags & EMPATHY_CONTACT_WIDGET_NO_ACCOUNT) == 0) { - const gchar *name; + if (account) + { + const gchar *name; - name = tp_account_get_display_name (account); - gtk_label_set_label (GTK_LABEL (information->label_account), name); + name = tp_account_get_display_name (account); + gtk_label_set_label (GTK_LABEL (information->label_account), + name); - name = tp_account_get_icon_name (account); - gtk_image_set_from_icon_name (GTK_IMAGE (information->image_account), - name, GTK_ICON_SIZE_MENU); + name = tp_account_get_icon_name (account); + gtk_image_set_from_icon_name ( + GTK_IMAGE (information->image_account), + name, GTK_ICON_SIZE_MENU); + } } } |