From 1668f347aa125864384deee91b74cc85be781941 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 23 Mar 2012 11:55:34 +0100 Subject: 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 --- libempathy-gtk/empathy-contact-widget.c | 21 +++++++++++++-------- 1 file 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); + } } } -- cgit v1.2.3