[libgd] GdTaggedEntry: Add a missing gtk_style_context_restore()



commit ed6c8f3667b67ac284933a3d03faa34b5948bf52
Author: Benjamin Otte <otte redhat com>
Date:   Thu Sep 17 20:56:41 2015 +0200

    GdTaggedEntry: Add a missing gtk_style_context_restore()
    
    This could cause nasty side effects messing up the whole rendering of
    the GdTaggedEntry.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=755136

 libgd/gd-tagged-entry.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libgd/gd-tagged-entry.c b/libgd/gd-tagged-entry.c
index 35c481d..f278d12 100644
--- a/libgd/gd-tagged-entry.c
+++ b/libgd/gd-tagged-entry.c
@@ -421,6 +421,7 @@ gd_tagged_entry_tag_get_area (GdTaggedEntryTag      *tag,
   gd_tagged_entry_tag_get_relative_allocations (tag, tag->priv->entry, context,
                                                 &background_allocation,
                                                 NULL, NULL);
+  gtk_style_context_restore (context);
 
   rect->x = window_x - alloc.x + background_allocation.x;
   rect->y = window_y - alloc.y + background_allocation.y;


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