[empathy] contact_widget_contact_update: change 'if else' block to a 'if' block inside the 'else'



commit 1668f347aa125864384deee91b74cc85be781941
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Fri Mar 23 11:55:34 2012 +0100

    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 files changed, 13 insertions(+), 8 deletions(-)
---
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 90cb31f..28b4adb 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);
+            }
         }
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]