This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug AWT/16741] New: Toolkit.loadSystemColor unimplemented


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]