Summary: | Unfocused tree views in gtk+-2.0 do not show highlighted element | ||
---|---|---|---|
Product: | kcontrol | Reporter: | Billy Biggs <vektor> |
Component: | krdb | Assignee: | Dirk Mueller <mueller> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Billy Biggs
2004-06-01 06:36:10 UTC
An example of an application where you can see an unfocused tree view is gtk-demo. This application has a list on the left, and a tab folder on the right. Clicking in the tab folder gives it focus. You should be able to see which element is selected even if the tree does not have focus, and ideally it should be a different colour from when it has focus. I have confirmed that this bug was fixed by this code which was checked in between KDE 3.2.2 and KDE 3.2.3. --- krdb.cpp 2004-09-19 15:08:00.000000000 -0400 +++ krdb-3.2.3.cpp 2004-09-19 15:07:03.000000000 -0400 @@ -343,8 +343,8 @@ t << " base[NORMAL] = " << color( cg.base() ) << endl; t << " base[SELECTED] = " << color( cg.highlight() ) << endl; t << " base[INSENSITIVE] = " << color( cg.background() ) << endl; - t << " base[ACTIVE] = " << color( cg.base() ) << endl; - t << " base[PRELIGHT] = " << color( cg.base() ) << endl; + t << " base[ACTIVE] = " << color( cg.highlight() ) << endl; + t << " base[PRELIGHT] = " << color( cg.highlight() ) << endl; t << endl; t << " text[NORMAL] = " << color( cg.text() ) << endl; t << " text[SELECTED] = " << color( cg.highlightedText() ) << endl; |