From 95b35964cdfaaa82012c6b965694d3c8eb25ef8b Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Tue, 6 Jan 2015 21:14:12 -0200 Subject: [PATCH] search-view: fixed double border at the end of the list Also, fixes a small details that the results list is always expanded. --- data/theme/gtk-styles.css | 4 ++++ data/ui/search-view.ui | 6 +++++- src/gcal-search-view.c | 1 - 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/data/theme/gtk-styles.css b/data/theme/gtk-styles.css index 563bdb15..fc00d736 100644 --- a/data/theme/gtk-styles.css +++ b/data/theme/gtk-styles.css @@ -97,6 +97,10 @@ GcalSearchView > GtkViewport { background-color: @theme_bg_color; } +.search-list { + border-bottom: 0px; +} + .search-list > GtkListBoxRow { border-bottom: solid 1px @borders; } diff --git a/data/ui/search-view.ui b/data/ui/search-view.ui index 817569b8..b0fd4e5c 100644 --- a/data/ui/search-view.ui +++ b/data/ui/search-view.ui @@ -23,8 +23,12 @@ True False True - True + False + GTK_ALIGN_START 0 + True diff --git a/src/gcal-search-view.c b/src/gcal-search-view.c index 96dc61bb..1d531f91 100644 --- a/src/gcal-search-view.c +++ b/src/gcal-search-view.c @@ -401,7 +401,6 @@ gcal_search_view_constructed (GObject *object) /* listbox */ gtk_list_box_set_sort_func (GTK_LIST_BOX (priv->listbox), (GtkListBoxSortFunc) sort_by_event, object, NULL); - gtk_style_context_add_class (gtk_widget_get_style_context (priv->listbox), "search-list"); gcal_manager_set_search_subscriber ( priv->manager,