diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2010-12-20 13:48:44 -0500 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2010-12-21 14:27:25 -0500 |
commit | a2dddb1da06aacef356cd7f0982b98ed3d5bb639 (patch) | |
tree | 6c3f4bf83d62884472f3bba123c55809118e62fd /gtk/gtkstyle.h | |
parent | 928fd84ebfeb323d13c6ee502879ca5d3c931978 (diff) | |
download | gtk+-a2dddb1da06aacef356cd7f0982b98ed3d5bb639.tar.gz |
Return an appropriate GtkStyle from gtk_rc_get_style_by_paths()
Always returning NULL (no match) from gtk_rc_get_style_by_paths()
means that looking up colors and style properties based on the
GtkStyle will give default values instead of themed values. We can
do better by returning a GtkStyle based on a GtkWidgetPath that we
figure out from the values passed in to get_style_by_paths().
https://bugzilla.gnome.org/show_bug.cgi?id=637520
Diffstat (limited to 'gtk/gtkstyle.h')
-rw-r--r-- | gtk/gtkstyle.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkstyle.h b/gtk/gtkstyle.h index efd78a7cfc..7aec22d88e 100644 --- a/gtk/gtkstyle.h +++ b/gtk/gtkstyle.h @@ -34,6 +34,7 @@ #include <gdk/gdk.h> #include <gtk/gtkenums.h> +#include <gtk/gtkwidgetpath.h> G_BEGIN_DECLS @@ -634,10 +635,13 @@ void gtk_style_get (GtkStyle *style, #endif /* --- private API --- */ +GtkStyle* _gtk_style_new_for_path (GdkScreen *screen, + GtkWidgetPath *path); void _gtk_style_shade (const GdkColor *a, GdkColor *b, gdouble k); + void gtk_draw_insertion_cursor (GtkWidget *widget, cairo_t *cr, const GdkRectangle *location, |