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 670018 - State modifications are inherited for fg, but not bg
State modifications are inherited for fg, but not bg
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Class: GtkStyleContext
3.3.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2012-02-13 22:01 UTC by Michael Terry
Modified: 2014-11-07 22:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test program (698 bytes, text/plain)
2012-02-13 22:01 UTC, Michael Terry
Details

Description Michael Terry 2012-02-13 22:01:02 UTC
Created attachment 207496 [details]
test program

Hello!  A recent update of GTK+ seems to have changed how style modifications are inherited.

The fg property is now inherited, but the bg is not.  The fg being inherited at all is a new change.  I don't know if that was intentional or not, but regardless, both should be either inherited together or not at all.

I'm using version 3.3.14-0ubuntu1 in Ubuntu 12.04.

The attached vala program demonstrates the behavior.

valac --pkg=gtk+-3.0 eventbox.vala
./eventbox
Comment 1 Matthias Clasen 2012-07-24 13:27:23 UTC
How does it look for you, and how do you expect it to look ?
For me, I see two labels with white-on-blue text, which doesn't seem unexpected to me.
This is obviously theme-dependent.
Comment 2 Michael Terry 2012-07-24 14:01:10 UTC
Ah, right you are.  It looks as I would expect in Adwaita.

I didn't think it would be theme dependent because the change happened with a GTK+ update.  I'll file a bug against Ambiance.
Comment 3 Guillaume AMAT 2012-08-17 16:19:27 UTC
It seems there is really a problem, see that bug : https://bugzilla.redhat.com/show_bug.cgi?id=818575
Comment 4 Michael Terry 2013-07-29 16:19:51 UTC
I'd like to re-open this for consideration, as it is reported in many themes.  In Debian [1] and Fedora [2] at least.

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=671479
[2] https://bugzilla.redhat.com/show_bug.cgi?id=818575
Comment 5 Matthias Clasen 2014-11-07 22:37:10 UTC
We are following the css model as closely as we can, nowadays. Css doesn't have a concept of foreground/background pairs, but instead it has a foreground color, and background is more general - images, animations, etc... So, I don't think there is anything concrete to fix here.