[libgd/wip/tagged-entry-fix] Tagged entry: unrealize a tag when removing it



commit b5822d6935bb609e82ec526ec74c5e70d751f364
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Aug 28 18:32:23 2013 +0200

    Tagged entry: unrealize a tag when removing it
    
    If the application keeps a reference to the tag, the tag is not
    finalized and thus the tag was not unrealized.
    
    When the tag is removed but not unrealized, the secondary icon doesn't
    work. When we click on the secondary icon, the event->window is not the
    good one.

 libgd/gd-tagged-entry.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgd/gd-tagged-entry.c b/libgd/gd-tagged-entry.c
index eee2fe1..d0f3f26 100644
--- a/libgd/gd-tagged-entry.c
+++ b/libgd/gd-tagged-entry.c
@@ -1045,6 +1045,8 @@ gd_tagged_entry_remove_tag (GdTaggedEntry    *self,
   if (!g_list_find (self->priv->tags, tag))
     return FALSE;
 
+  gd_tagged_entry_tag_unrealize (tag);
+
   self->priv->tags = g_list_remove (self->priv->tags, tag);
   g_object_unref (tag);
 


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