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 392015 - Selected menu item invisible on Windows Vista
Selected menu item invisible on Windows Vista
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Win32
2.10.x
Other All
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
: 433033 439969 443751 452623 526921 571461 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-01-02 19:29 UTC by Daniel Atallah
Modified: 2009-02-19 15:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot demonstrating invisible menu items (237.24 KB, image/png)
2007-01-02 19:30 UTC, Daniel Atallah
  Details
Vista Ultimate using GTK with Gaim. (36.15 KB, image/png)
2007-02-14 08:09 UTC, Thomas Kuczek
  Details
Workaround for Vista menu bug (588 bytes, patch)
2007-02-16 05:39 UTC, Hiroyuki Yamamoto
needs-work Details | Review

Description Daniel Atallah 2007-01-02 19:29:38 UTC
Please describe the problem:
On Windows Vista, when using the MS-Windows theme, the selected menu item is highlighted in white and the highlighted text is also white.  This makes it impossible to see the text of the highlighted menu item.

Screenshot attached.

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Daniel Atallah 2007-01-02 19:30:52 UTC
Created attachment 79209 [details]
Screenshot demonstrating invisible menu items
Comment 2 Dominic Lachowicz 2007-01-02 19:41:21 UTC
Maybe the theme engine got the wrong font color to use for menu items. What WinXP theme are you using? Luna Silver?
Comment 3 Daniel Atallah 2007-01-02 19:49:58 UTC
This is with Vista, not WinXP.
The windows theme is the default Windows Aero theme that is selected after installing vista.
Comment 4 Tor Lillqvist 2007-02-13 03:02:52 UTC
The same problem was also reported in private mail:

> I don't know if you know about this, but in Vista if you hover over a 
> menu item the text disappears.
Comment 5 Thomas Kuczek 2007-02-14 08:09:39 UTC
Created attachment 82518 [details]
Vista Ultimate using GTK with Gaim. 

I have verified the problem. It also exists on Vista Ultimate full release.
Comment 6 Hiroyuki Yamamoto 2007-02-16 05:39:34 UTC
Created attachment 82656 [details] [review]
Workaround for Vista menu bug

This patch is a workaround for the Vista menu bug.
I have just disabled xp_theme_draw() in msw_style.c::draw_menu_item() and
made it use the default draw routine.
It seems there is no visual change in Windows 2000/XP by this patch.
Not the best solution, but at least selected menu item becomes visible.
Comment 7 Tor Lillqvist 2007-02-17 09:05:13 UTC
Hmm. If there is unneeded code, instead of #if 0, just remove the code in question then. If the code in question is needed on pre-Vista platforms, we need to make it conditional depending on OS version.
Comment 8 Cody Russell 2007-04-19 17:30:10 UTC
Looks fine in XP using multiple themes.  Committed to trunk and gtk-2-10.
Comment 9 Dominic Lachowicz 2007-04-24 19:09:11 UTC
*** Bug 433033 has been marked as a duplicate of this bug. ***
Comment 10 Sven Neumann 2007-05-20 16:19:35 UTC
*** Bug 439969 has been marked as a duplicate of this bug. ***
Comment 11 Tor Lillqvist 2007-06-04 06:28:34 UTC
*** Bug 443751 has been marked as a duplicate of this bug. ***
Comment 12 Cody Russell 2007-08-29 19:16:24 UTC
*** Bug 452623 has been marked as a duplicate of this bug. ***
Comment 13 Hans Breuer 2008-04-12 15:31:29 UTC
*** Bug 526921 has been marked as a duplicate of this bug. ***
Comment 14 Cody Russell 2009-02-19 15:02:43 UTC
*** Bug 571461 has been marked as a duplicate of this bug. ***