Bug#339672: [patch] fix menu display in Java/Swing applications

Jindrich Makovicka makovick at kmlinux.fjfi.cvut.cz
Thu Nov 17 21:36:52 UTC 2005


Package: gtk2-engines-clearlooks
Version: 0.6.2-1

When GTK look is used in a Swing application, Java tries to emulate the 
current theme. However, it doesn't know anything about clearlooks engine 
and ignores it, only using the color scheme. This means that the 
selected menu item is invisible, due to a missing PRELIGHT value. The 
attached patch changes the background color of the selected menu item to 
a correct one. This change does not affect the look of original GTK 
applications at all, as PRELIGHT appears to be unused by the engine.

Tested with libgtk 2.6.10-2 & java 1.5.0-update5. The Swing bug can be 
seen eg. in JAlbum (http://jalbum.net). The patch is for basic variant 
of Clearlooks, the others would need a similar modification.

-- 
Jindrich Makovicka
-------------- next part --------------
--- gtkrc.orig	2005-06-30 12:47:24.000000000 +0200
+++ gtkrc	2005-09-08 19:55:43.157659021 +0200
@@ -92,6 +92,7 @@
   ythickness = 3
   fg[PRELIGHT] = "#ffffff"
   text[PRELIGHT] = "#ffffff"
+  bg[PRELIGHT] = "#7c99ad"
 }
 
 style "clearlooks-menu-itembar" = "clearlooks-default"


More information about the Pkg-gnome-maintainers mailing list