[epiphany] bookmark-properties-grid: Fix duplicate tag creation



commit bb07e27a5c88f19ac73bc24023461434e3465479
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Jan 22 11:20:20 2017 -0600

    bookmark-properties-grid: Fix duplicate tag creation
    
    Here we're just trying to add a style class to a widget, but it
    accidentally causes the new tag to be created a second time, leading to
    serious breakage in the bookmarks popover.

 src/bookmarks/ephy-bookmark-properties-grid.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/bookmarks/ephy-bookmark-properties-grid.c b/src/bookmarks/ephy-bookmark-properties-grid.c
index cf3a3f5..6de2a93 100644
--- a/src/bookmarks/ephy-bookmark-properties-grid.c
+++ b/src/bookmarks/ephy-bookmark-properties-grid.c
@@ -200,12 +200,8 @@ ephy_bookmark_properties_grid_create_tag_widget (EphyBookmarkPropertiesGrid *sel
 
   context = gtk_widget_get_style_context (widget);
   gtk_style_context_add_class (context, "bookmark-tag-widget");
-  if (selected) {
-    /* Toggle initial state on child */
-    ephy_bookmark_properties_grid_tags_box_child_activated_cb (EPHY_BOOKMARK_PROPERTIES_GRID (self),
-                                                               GTK_FLOW_BOX_CHILD (GTK_FLOW_BOX_CHILD 
(widget)),
-                                                               GTK_FLOW_BOX (self->tags_box));
-  }
+  if (selected)
+    gtk_style_context_add_class (context, "bookmark-tag-widget-selected");
 
   gtk_widget_show_all (widget);
 


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