[epiphany/wip/bookmarks: 35/76] bookmarks-popover: Improve tag detail list box
- From: Iulian Radu <iulianradu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/bookmarks: 35/76] bookmarks-popover: Improve tag detail list box
- Date: Wed, 28 Sep 2016 13:19:44 +0000 (UTC)
commit ecddf49b0aef85bb0598b565b9f5ef9b2dacb544
Author: Iulian Radu <iulian radu67 gmail com>
Date: Tue Aug 16 11:36:47 2016 +0300
bookmarks-popover: Improve tag detail list box
Sort bookmarks by name. Activate rows on click.
src/ephy-bookmarks-popover.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-bookmarks-popover.c b/src/ephy-bookmarks-popover.c
index d437968..c36c66e 100644
--- a/src/ephy-bookmarks-popover.c
+++ b/src/ephy-bookmarks-popover.c
@@ -331,7 +331,7 @@ ephy_bookmarks_popover_show_tag_detail (EphyBookmarksPopover *self,
GtkWidget *row;
row = create_bookmark_row (bookmark, self);
- gtk_list_box_prepend (GTK_LIST_BOX (self->tag_detail_list_box), row);
+ gtk_container_add (GTK_CONTAINER (self->tag_detail_list_box), row);
}
gtk_label_set_label (GTK_LABEL (self->tag_detail_label), tag);
@@ -459,6 +459,9 @@ ephy_bookmarks_popover_init (EphyBookmarksPopover *self)
gtk_list_box_set_sort_func (GTK_LIST_BOX (self->tags_list_box),
(GtkListBoxSortFunc)tags_list_box_sort_func,
NULL, NULL);
+ gtk_list_box_set_sort_func (GTK_LIST_BOX (self->tag_detail_list_box),
+ (GtkListBoxSortFunc)tags_list_box_sort_func,
+ NULL, NULL);
tags = ephy_bookmarks_manager_get_tags (self->manager);
for (iter = g_sequence_get_begin_iter (tags);
@@ -502,6 +505,9 @@ ephy_bookmarks_popover_init (EphyBookmarksPopover *self)
g_signal_connect_object (self->tags_list_box, "row-activated",
G_CALLBACK (ephy_bookmarks_popover_list_box_row_activated_cb),
self, G_CONNECT_SWAPPED);
+ g_signal_connect_object (self->tag_detail_list_box, "row-activated",
+ G_CALLBACK (ephy_bookmarks_popover_list_box_row_activated_cb),
+ self, G_CONNECT_SWAPPED);
}
EphyBookmarksPopover *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]