diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2010-11-30 02:14:00 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2010-12-04 15:39:51 +0100 |
commit | 297fa7a3dd6f114cecc1c2f1306312599f392e23 (patch) | |
tree | d09ae018f339034c7c32462e3deeab9c4b883a98 /gtk/gtkstyleprovider.c | |
parent | 2ca905db5ebeeb275e72629b535b8153f0ae9b01 (diff) | |
download | gtk+-297fa7a3dd6f114cecc1c2f1306312599f392e23.tar.gz |
GtkStyleProvider: Add GtkStateFlags parameter to get_style_property().
Widget style properties can now have different values depending on the
current state.
Diffstat (limited to 'gtk/gtkstyleprovider.c')
-rw-r--r-- | gtk/gtkstyleprovider.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkstyleprovider.c b/gtk/gtkstyleprovider.c index 76257ba5e0..8ed0d975ca 100644 --- a/gtk/gtkstyleprovider.c +++ b/gtk/gtkstyleprovider.c @@ -86,6 +86,7 @@ gtk_style_provider_get_style (GtkStyleProvider *provider, * gtk_style_provider_get_style_property: * @provider: a #GtkStyleProvider * @path: #GtkWidgetPath to query + * @state: state to query the style property for * @pspec: The #GParamSpec to query * @value: (out): return location for the property value * @@ -97,6 +98,7 @@ gtk_style_provider_get_style (GtkStyleProvider *provider, gboolean gtk_style_provider_get_style_property (GtkStyleProvider *provider, GtkWidgetPath *path, + GtkStateFlags state, GParamSpec *pspec, GValue *value) { @@ -113,7 +115,7 @@ gtk_style_provider_get_style_property (GtkStyleProvider *provider, if (!iface->get_style_property) return FALSE; - return iface->get_style_property (provider, path, pspec, value); + return iface->get_style_property (provider, path, state, pspec, value); } /** |