[gnome-calendar] search-view: fixed double border at the end of the list
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] search-view: fixed double border at the end of the list
- Date: Fri, 9 Jan 2015 14:31:53 +0000 (UTC)
commit 95b35964cdfaaa82012c6b965694d3c8eb25ef8b
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Jan 6 21:14:12 2015 -0200
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 563bdb1..fc00d73 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 817569b..b0fd4e5 100644
--- a/data/ui/search-view.ui
+++ b/data/ui/search-view.ui
@@ -23,8 +23,12 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
- <property name="vexpand">True</property>
+ <property name="vexpand">False</property>
+ <property name="valign">GTK_ALIGN_START</property>
<property name="label_xalign">0</property>
+ <style>
+ <class name="search-list" />
+ </style>
<child>
<object class="GtkListBox" id="listbox">
<property name="visible">True</property>
diff --git a/src/gcal-search-view.c b/src/gcal-search-view.c
index 96dc61b..1d531f9 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]