[nautilus] list-view: add a workaround for a GTK bug
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] list-view: add a workaround for a GTK bug
- Date: Wed, 18 Feb 2015 21:15:00 +0000 (UTC)
commit a84f37af0501f322bacf40616897829959eb6d72
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Feb 17 11:35:29 2015 -0800
list-view: add a workaround for a GTK bug
Makes dim labels work correctly.
https://bugzilla.gnome.org/show_bug.cgi?id=744681
src/Adwaita.css | 3 ++-
src/nautilus-list-view.c | 5 ++++-
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/Adwaita.css b/src/Adwaita.css
index e8020c7..295b73c 100644
--- a/src/Adwaita.css
+++ b/src/Adwaita.css
@@ -2,7 +2,8 @@
border-radius: 5px;
}
-.nautilus-canvas-item.dim-label {
+.nautilus-canvas-item.dim-label,
+.nautilus-list-dim-label {
color: mix (@theme_fg_color, @theme_bg_color, 0.50);
}
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index ab99d20..449a22c 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -2088,8 +2088,11 @@ create_and_set_up_tree_view (NautilusListView *view)
view, NULL);
} else {
cell = gd_styled_text_renderer_new ();
+ /* FIXME: should be just dim-label.
+ * See https://bugzilla.gnome.org/show_bug.cgi?id=744397
+ */
gd_styled_text_renderer_add_class (GD_STYLED_TEXT_RENDERER (cell),
- "dim-label");
+ "nautilus-list-dim-label");
g_object_set (cell,
"xalign", xalign,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]