[accounts-dialog] Only ever show a single emblem per face in the photo popdown



commit 4f06d66f84388ccf0f84ef13a13b115aaa1b1122
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jan 21 13:05:49 2010 -0500

    Only ever show a single emblem per face in the photo popdown

 src/um-photo-dialog.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/um-photo-dialog.c b/src/um-photo-dialog.c
index 528267c..88856db 100644
--- a/src/um-photo-dialog.c
+++ b/src/um-photo-dialog.c
@@ -593,7 +593,10 @@ set_tip (GtkWidget  *item,
         g_list_free (children);
 
         gtk_image_get_gicon (GTK_IMAGE (image), &icon, NULL);
-        g_object_ref (emblem);
+        if (G_IS_EMBLEMED_ICON (icon)) {
+                return;
+        }
+
         icon2 = g_emblemed_icon_new (icon, emblem);
         gtk_image_set_from_gicon (GTK_IMAGE (image), icon2, GTK_ICON_SIZE_DIALOG);
 



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