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 112840 - TextView color doesn't change with state
TextView color doesn't change with state
Status: RESOLVED NOTABUG
Product: gtkmm
Classification: Bindings
Component: general
2.2
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2003-05-12 14:45 UTC by Markus Gerwinski
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
tar archive containing a simple test case (20.32 KB, application/octet-stream)
2003-05-12 18:37 UTC, Markus Gerwinski
Details

Description Markus Gerwinski 2003-05-12 14:45:07 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.
Comment 1 Murray Cumming 2003-05-12 15:47:17 UTC
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.
Comment 2 Markus Gerwinski 2003-05-12 18:37:54 UTC
Created attachment 16467 [details]
tar archive containing a simple test case
Comment 3 Murray Cumming 2003-05-13 08:29:37 UTC
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.
Comment 4 Markus Gerwinski 2003-05-13 09:08:35 UTC
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 );'
Comment 5 Murray Cumming 2003-05-13 15:16:19 UTC
> 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.
Comment 6 Markus Gerwinski 2003-05-14 07:51:52 UTC
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.
Comment 7 Murray Cumming 2003-05-14 16:56:03 UTC
But it's never grey. I've tried changing the code. Something is
different on your system.
Comment 8 Markus Gerwinski 2003-05-15 15:56:35 UTC
Very strange. Does the button at least change the "sensitive" status
on your system? If yes, in what mode does it start?
Comment 9 Murray Cumming 2003-05-17 17:23:37 UTC
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.
Comment 10 Murray Cumming 2003-05-21 06:21:45 UTC
So, I'm assuming that this is not a bug. Reopen if it is.