CVSROOT:        /cvs/gnome
Module name:    gtk+
Changes by:     mitch   05/11/23 05:33:59

Modified files:
        .              : ChangeLog configure.in 
        gtk            : gtk.symbols gtkrc.c gtkrc.h gtksettings.c 
                         gtkstyle.c gtkstyle.h 
        tests          : testgtkrc 

Log message:
2005-11-23  Michael Natterer  <[EMAIL PROTECTED]>

Added symbolic themable colors. Patch is a merged version of
proposals from Matthias and maemo-gtk. Fixes bug #114355 
[http://bugzilla.gnome.org/show_bug.cgi?id=114355].

* configure.in: require glib >= 2.9.1 for refcountable hashtables.

* gtk/gtksettings.c: added property "color-scheme" which is a
string defining colors like "foreground:black\nbackground:grey".
Automatically provide a name->GdkColor hash table mapping for the
color scheme.

* gtk/gtkrc.[ch]: added list of color hashes that works like the
list of icon factories. Append the color scheme hash from
GtkSettings if it exists. Extended gtkrc syntax to allow defining
and referencing of logical colors. Also allow to modulate colors
in gtkrc by using arbitrary expressions of mix(), shade(),
lighter() and darker(). Added internal function
_gtk_rc_style_get_color_hashes().

* gtk/gtkstyle.[ch]: keep a private list of color hashes around.
Get the list from _gtk_rc_style_get_color_hashes(). Export
internal function _gtk_style_shade() (used by above color
expressions). Added public API gtk_style_lookup_color() which
looks up a logical color by name.

* gtk/gtk.symbols: add gtk_style_lookup_color

* tests/testgtkrc: use symbolic colors for making
the scrollbars red.

URL : 
http://cvs.gnome.org/bonsai/cvsquery.cgi?branch=&dir=gtk%2B&who=mitch&date=explicit&mindate=2005-11-23%2005:32&maxdate=2005-11-23%2005:34

_______________________________________________
cvs-commits-list mailing list
cvs-commits-list@gnome.org
http://mail.gnome.org/mailman/listinfo/cvs-commits-list

Reply via email to