[accounts-dialog] Fix multiple emblems showing up for already set icons



commit 72262777207f5e8694fdd4a34fba8b89f6ba0c58
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jan 21 16:51:52 2010 +0000

    Fix multiple emblems showing up for already set icons

 src/um-photo-dialog.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/um-photo-dialog.c b/src/um-photo-dialog.c
index bd67dd5..528267c 100644
--- a/src/um-photo-dialog.c
+++ b/src/um-photo-dialog.c
@@ -620,6 +620,7 @@ um_photo_dialog_set_user (UmPhotoDialog *um,
         um->user = user;
 
         if (um->user) {
+                gboolean user_set = FALSE;
                 g_object_ref (user);
 
                 children = gtk_container_get_children (GTK_CONTAINER (um->photo_popup));
@@ -655,9 +656,13 @@ um_photo_dialog_set_user (UmPhotoDialog *um,
                                                                um_user_get_real_name (u));
                                         set_tip (GTK_WIDGET (c->data), tip, emblem);
                                         g_free (tip);
+                                        /* Only show one emblem for each icon */
+                                        user_set = TRUE;
                                         break;
                                 }
                         }
+                        if (user_set != FALSE)
+                                break;
                 }
                 g_slist_free (list);
 



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