summaryrefslogtreecommitdiff
path: root/gtk/gtk.symbols
diff options
context:
space:
mode:
authorMichael Natterer <mitch@imendio.com>2005-11-23 10:33:58 +0000
committerMichael Natterer <mitch@src.gnome.org>2005-11-23 10:33:58 +0000
commitde3155a4c2c8321b10e561e87e7f8086dd13c26b (patch)
tree4c3b1936922cfb9749b7a668bd799a17826a44ca /gtk/gtk.symbols
parentdfa4870b74be2ade513ffda504cd4fdfede19bb3 (diff)
downloadgdk-pixbuf-de3155a4c2c8321b10e561e87e7f8086dd13c26b.tar.gz
Added symbolic themable colors. Patch is a merged version of proposals
2005-11-23 Michael Natterer <mitch@imendio.com> Added symbolic themable colors. Patch is a merged version of proposals from Matthias and maemo-gtk. Fixes bug #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.
Diffstat (limited to 'gtk/gtk.symbols')
-rw-r--r--gtk/gtk.symbols1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols
index da23d2989..97e88e449 100644
--- a/gtk/gtk.symbols
+++ b/gtk/gtk.symbols
@@ -1068,6 +1068,7 @@ gtk_style_copy
gtk_style_detach
gtk_style_get_type G_GNUC_CONST
gtk_style_lookup_icon_set
+gtk_style_lookup_color
gtk_style_new
gtk_style_render_icon
gtk_style_set_background