[gnome-calendar] search-view: add a border below search results
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] search-view: add a border below search results
- Date: Fri, 9 Jan 2015 14:28:55 +0000 (UTC)
commit 842be669cd3c41868dc78898cfb5f947df77e5e3
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat Jan 3 23:09:45 2015 -0200
search-view: add a border below search results
data/theme/gtk-styles.css | 4 ++++
src/gcal-search-view.c | 1 +
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/data/theme/gtk-styles.css b/data/theme/gtk-styles.css
index 49fe98f..563bdb1 100644
--- a/data/theme/gtk-styles.css
+++ b/data/theme/gtk-styles.css
@@ -96,3 +96,7 @@ GcalEventWidget.color-light:backdrop {
GcalSearchView > GtkViewport {
background-color: @theme_bg_color;
}
+
+.search-list > GtkListBoxRow {
+ border-bottom: solid 1px @borders;
+}
diff --git a/src/gcal-search-view.c b/src/gcal-search-view.c
index 6749cfd..fb34d66 100644
--- a/src/gcal-search-view.c
+++ b/src/gcal-search-view.c
@@ -305,6 +305,7 @@ gcal_search_view_constructed (GObject *object)
gtk_list_box_set_selection_mode (GTK_LIST_BOX (priv->listbox),
GTK_SELECTION_NONE);
gtk_list_box_set_sort_func (GTK_LIST_BOX (priv->listbox), (GtkListBoxSortFunc) sort_by_event, NULL, NULL);
+ gtk_style_context_add_class (gtk_widget_get_style_context (priv->listbox), "search-list");
gtk_widget_show (priv->listbox);
gtk_container_add (GTK_CONTAINER (frame), priv->listbox);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]