This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 61402 - [GTK] Wrong background of selected item in a list
Summary: [GTK] Wrong background of selected item in a list
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 5.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords: GTK, REGRESSION
Depends on:
Blocks:
 
Reported: 2005-07-26 12:09 UTC by Martin Krauskopf
Modified: 2008-12-23 00:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
AntProjectHelper is 'selected' (43.31 KB, image/png)
2005-07-26 12:13 UTC, Martin Krauskopf
Details
HtmlLabelUI patch (843 bytes, patch)
2005-10-31 08:56 UTC, Martin Krauskopf
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Krauskopf 2005-07-26 12:09:44 UTC
See screenshot of the Documents window (Shift+F4). Note that it is not the same
as issue 58117 however may be related. Also try to play with New File wizard
(Ctrl+N). Left list is OK, right is not - strange.
Comment 1 Martin Krauskopf 2005-07-26 12:11:37 UTC
linux, gtk, jdk 1.5.0_04, jdk 1.6.0-ea-b44
This worked before.
Comment 2 Martin Krauskopf 2005-07-26 12:13:12 UTC
Created attachment 23288 [details]
AntProjectHelper is 'selected'
Comment 3 Martin Krauskopf 2005-10-31 08:55:17 UTC
Probably Tim's should know more. Probably his regression. Not only unfocused
background, but also focused background color is invisible in some cases.
Attaching the patch which will make it at least usable. Not ideal but still
better than current implementation which makes GTK more or less
unusable/very_inconvenient (See New File, New Project, Add Module Dependency, ...)
But as Tim said "It mangles painting on GTK L&F"....
Should be IMHO fixed for 5.0, since GTK works quite nicely in Mustang.
Comment 4 Martin Krauskopf 2005-10-31 08:56:14 UTC
Created attachment 26462 [details]
HtmlLabelUI patch
Comment 5 _ tboudreau 2005-10-31 12:50:42 UTC
My recollection - painting our own background color in earlier versions of GTK
L&F just guaranteed we would paint the wrong color, which is why that line was
there - in other words, returning null there probably does solve the problem for
JDK 1.5;  but something has changed in 1.6 and it now works correctly.

So if deleting those lines works, do it - we don't care about GTK on 1.5 anyway,
right?
Comment 6 Martin Krauskopf 2005-10-31 15:57:00 UTC
I'll do so. I'm using patched version for some time. Is better to use
not-so-polished version than hard-to-use one.
Comment 7 Martin Krauskopf 2005-10-31 16:09:02 UTC
Fixed.

Checking in openide/awt/HtmlLabelUI.java; 1.7 --> 1.8
Comment 8 David Simonek 2005-10-31 16:31:34 UTC
OK, thanks a lot.
Comment 9 Jaromir Uhrik 2006-01-16 15:44:32 UTC
Marking this issue as VERIFIED since the issue reporter == issue owner.