[nautilus/wip/csoriano/search-popover: 1/17] nautilus-list-view: add a styleclass
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/csoriano/search-popover: 1/17] nautilus-list-view: add a styleclass
- Date: Wed, 27 Jan 2016 19:59:58 +0000 (UTC)
commit edd274ea76f27e3cfc40e073fd089eac638b0d46
Author: Horst3180 <horst3180 gmx net>
Date: Wed Jan 27 12:43:28 2016 +0100
nautilus-list-view: add a styleclass
This makes the borders in the nautilus-list-view work again
https://bugzilla.gnome.org/show_bug.cgi?id=761098
src/nautilus-list-view.c | 3 +++
src/resources/css/Adwaita.css | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index a0377da..7b517ad 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -3168,6 +3168,9 @@ nautilus_list_view_init (NautilusListView *list_view)
create_and_set_up_tree_view (list_view);
+ gtk_style_context_add_class (gtk_widget_get_style_context (list_view),
+ "nautilus-list-view");
+
g_signal_connect_swapped (nautilus_preferences,
"changed::" NAUTILUS_PREFERENCES_DEFAULT_SORT_ORDER,
G_CALLBACK (default_sort_order_changed_callback),
diff --git a/src/resources/css/Adwaita.css b/src/resources/css/Adwaita.css
index 92e8d77..6246119 100644
--- a/src/resources/css/Adwaita.css
+++ b/src/resources/css/Adwaita.css
@@ -112,6 +112,6 @@
}
/* View */
-NautilusListView .view {
+.nautilus-list-view .view {
border-bottom: 1px solid @theme_bg_color;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]