After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 709617 - No alternating colors in the ListView
No alternating colors in the ListView
Status: RESOLVED WONTFIX
Product: hyena
Classification: Other
Component: Hyena.Gui
git master
Other Linux
: Normal normal
: ---
Assigned To: hyena-maint
hyena-maint
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2013-10-08 09:22 UTC by Bertrand Lorentz
Modified: 2018-07-10 23:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
ListView with no alternating colors (45.93 KB, image/png)
2013-10-08 09:22 UTC, Bertrand Lorentz
Details

Description Bertrand Lorentz 2013-10-08 09:22:35 UTC
Created attachment 256698 [details]
ListView with no alternating colors

Lines in the ListView are supposed to be in alternating colors (white and light gray, for example), but this is not the case since we moved to GTK+ 3 (see screenshot).

This happens both with the Adwaita theme (GNOME 3 default), and the Ambiance theme (default on Ubuntu).
Comment 1 Satyajit Sahoo 2013-10-09 17:59:06 UTC
The alternating colors depend upon the GTK3 theme AFAIK. May be you can include the following CSS with GtkCSSProvider if you want Banshee to override the theme,



GtkTreeView row:nth-child(even) {
    background-color: shade(@theme_base_color, 0.9);
}

GtkTreeView row:nth-child(odd) {
    background-color: shade(@theme_base_color, 1.0);
}
Comment 2 Bertrand Lorentz 2013-10-10 15:40:04 UTC
(In reply to comment #1)
> The alternating colors depend upon the GTK3 theme AFAIK. May be you can include
> the following CSS with GtkCSSProvider if you want Banshee to override the
> theme,

Thanks for the suggestion, but the ListView is a custom-drawn widget, it doesn't inherit from GtkTreeView.

So I think we should try to do the right thing with GtkStyleContext so that our drawing uses the correct styles (colors, etc.).
Comment 3 Andrés G. Aragoneses (IRC: knocte) 2014-08-03 09:18:49 UTC
(In reply to comment #2)
> Thanks for the suggestion, but the ListView is a custom-drawn widget, it
> doesn't inherit from GtkTreeView.

Even if it doesn't inherit from GtkTreeView, given its similarities, I think we should try to mimic it as much as possible. For example, one thing to take in account, moving forward, with this bug, is that GtkTreeView's rules-hint has been deprecated: see bug 733312.
Comment 4 André Klapper 2018-07-10 23:02:12 UTC
Hyena is not under active development anymore and had its last code changes
more than three years ago. Its codebase has been archived:
https://gitlab.gnome.org/Archive/hyena/commits/master

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Please feel free to reopen this ticket (or rather transfer the project
to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the
responsibility for active development again.