This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug AWT/16741] New: Toolkit.loadSystemColor unimplemented
- From: "gcc-bugzilla at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jul 2004 00:27:57 -0000
- Subject: [Bug AWT/16741] New: Toolkit.loadSystemColor unimplemented
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Toolkit.loadSystemColor(int[] systemColors) is unimplemented at the
moment. Acunia's SystemColor.SystemColors test fails as a result.
I briefly investigated how we might implement this. An instance of
GtyStyle exists in all GtkWidget objects. These keep track of
GdkColor resources, but I'm not sure which of these colors map to AWT
SystemColors.
------- Additional Comments From fitzsim at redhat dot com 2004-05-18 18:26 -------
I checked in a temporary fix for this on the java-gui-branch that
pulls values from the default GtkStyle.
A proper fix would be a pure Java implementation that loads a
.properties file containing the system colours matching a given
GTK/Metacity theme. For example, it's impossible to obtain the colour
of an active window's title bar from GTK, since it's a window manager
setting.
See: Toolkit.lazilyLoadDesktopProperty,
Toolkit.initializeDesktopProperties and Toolkit.loadSystemColors.
--
Summary: Toolkit.loadSystemColor unimplemented
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P1
Component: AWT
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: djee at redhat dot com
CC: djee at redhat dot com,gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16741