diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2015-02-17 11:35:29 -0800 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2015-02-18 22:11:01 +0100 |
commit | a84f37af0501f322bacf40616897829959eb6d72 (patch) | |
tree | f98c4a351de2e868c93b354f6fbeedce6f2982e6 | |
parent | 02b9ec79ef83c87d61a1d7690f2112286efcc653 (diff) | |
download | nautilus-a84f37af0501f322bacf40616897829959eb6d72.tar.gz |
list-view: add a workaround for a GTK bug
Makes dim labels work correctly.
https://bugzilla.gnome.org/show_bug.cgi?id=744681
-rw-r--r-- | src/Adwaita.css | 3 | ||||
-rw-r--r-- | src/nautilus-list-view.c | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/Adwaita.css b/src/Adwaita.css index e8020c7d2..295b73ce8 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 ab99d2053..449a22c50 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, |