[epiphany] bookmarks-popover: Fix missing conditional in previous patch
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] bookmarks-popover: Fix missing conditional in previous patch
- Date: Tue, 24 Jan 2017 03:44:33 +0000 (UTC)
commit 80bfba17a18056900b1b90f9347d6440a0b99fb9
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Mon Jan 23 21:43:44 2017 -0600
bookmarks-popover: Fix missing conditional in previous patch
No reason to mess with the tag detail list box if it's not visible.
https://bugzilla.gnome.org/show_bug.cgi?id=772131
src/bookmarks/ephy-bookmarks-popover.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/bookmarks/ephy-bookmarks-popover.c b/src/bookmarks/ephy-bookmarks-popover.c
index c8ceede..56053d3 100644
--- a/src/bookmarks/ephy-bookmarks-popover.c
+++ b/src/bookmarks/ephy-bookmarks-popover.c
@@ -72,7 +72,6 @@ ephy_bookmarks_popover_bookmark_tag_added_cb (EphyBookmarksPopover *popover,
/* If the bookmark no longer has 0 tags, we remove it from the tags list box */
if (g_sequence_get_length (ephy_bookmark_get_tags (bookmark)) == 1) {
- GtkWidget *row;
GList *children;
GList *l;
@@ -88,8 +87,11 @@ ephy_bookmarks_popover_bookmark_tag_added_cb (EphyBookmarksPopover *popover,
/* If we are on the tag detail list box, then the user has toggled the state
* of the tag widget multiple times. The first time the bookmark was removed
* from the list box. Now we have to add it back. */
- row = create_bookmark_row (bookmark, popover);
- gtk_container_add (GTK_CONTAINER (popover->tag_detail_list_box), row);
+ if (g_strcmp0 (visible_stack_child, "tag_detail") == 0) {
+ GtkWidget *row;
+ row = create_bookmark_row (bookmark, popover);
+ gtk_container_add (GTK_CONTAINER (popover->tag_detail_list_box), row);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]