GNOME Bugzilla – Bug 112840
TextView color doesn't change with state
Last modified: 2004-12-22 21:47:04 UTC
The background color of a TextView always remains the same, even if the "sensitive" property changes from true to false or vice versa: - If the TextView was initialized in sensitive mode, it remains white even after changing to insensitive. - If it was initialized in insensitive mode, it remains gray even after changing to sensitive.
Please show us a test case. I won't look at it before then, because I would have to build that test case, and you can do that as well as me. You might modify one of our examples to do this quickly.
Created attachment 16467 [details] tar archive containing a simple test case
By the way, that attachment seems to be a .tar.gz file. How would we initialize the TextView in insensitive mode to see it when it is grey? When I compile this test code the TextView seems to be white.
Why, _that's_ interesting. On my system, it is grey from the beginning. Does the color change when you click the button? The starting conditions can only be changed from the source. In the TextTest::TextTest constructor, there's a line `textView.set_sensitive ( false );'
> Does the color change when you click the button? No, I see no change. Maybe ask on the list for other people to try it.
No sweat -- that _is_ the error. Clicking the button toggles the "sensitive" status of the TextView. If everything was all right, you should see the color change whenever you click it.
But it's never grey. I've tried changing the code. Something is different on your system.
Very strange. Does the button at least change the "sensitive" status on your system? If yes, in what mode does it start?
The color thing seems to be a theme issue. The standard "simple" GNOME theme doesn't change the color for inactive edit boxes or TextViews. For me, it does change the sensitive/insensitive state. Please check that this isn't a theme/color problem.
So, I'm assuming that this is not a bug. Reopen if it is.