[empathy] details_update_show: skip empty field



commit e6e284c7dbcc97c007091b937837c94c47876922
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu Nov 10 10:02:31 2011 +0100

    details_update_show: skip empty field
    
    https://bugzilla.gnome.org/show_bug.cgi?id=663763

 libempathy-gtk/empathy-individual-widget.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-widget.c b/libempathy-gtk/empathy-individual-widget.c
index 215d321..3245f22 100644
--- a/libempathy-gtk/empathy-individual-widget.c
+++ b/libempathy-gtk/empathy-individual-widget.c
@@ -243,6 +243,10 @@ details_update_show (EmpathyIndividualWidget *self,
           continue;
         }
 
+      /* Skip empty field */
+      if (tp_str_empty (value))
+        continue;
+
       /* Add Title */
       title = empathy_contact_info_field_label (field->field_name,
           field->parameters);



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