Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 314384

Summary: TrayItem tooltip message not visible under Ubuntu 10.04 Lucid Lynx
Product: [Eclipse Project] Platform Reporter: Mickael Guessant <mguessan>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 4.0   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Use system colors to draw ToolTip message none

Description Mickael Guessant CLA 2010-05-25 19:01:56 EDT
Build Identifier: 3.6M6-gtk-linux-x86_64

Balloon Tooltips added to a TrayItem under latest  Ubuntu 10.04 Lucid Lynx with default theme are not displayed correctly: tooltip message is black on black.

Workaround: switch to another theme.


Reproducible: Always

Steps to Reproduce:
Create a tooltip, add to trayItem and set visible:
ToolTip toolTip = new ToolTip(shell, (SWT.BALLOON | SWT.ICON_INFORMATION));
toolTip.setText("My text");
toolTip.setMessage("My message");
trayItem.setToolTip(toolTip);
toolTip.setVisible(true);
Comment 1 Mickael Guessant CLA 2010-05-25 19:11:46 EDT
Created attachment 169916 [details]
Use system colors to draw ToolTip message

Fix to ToolTip.java to use gdk_draw_layout_with_colors instead of gdk_draw_layout to draw Tooltip message and use COLOR_INFO_FOREGROUND to draw messages.

With this patch, Tooltip message appears white on black under Ubuntu 10.04 as expected.
Comment 2 Praveen CLA 2010-05-26 02:48:31 EDT

*** This bug has been marked as a duplicate of bug 309907 ***