From 297fa7a3dd6f114cecc1c2f1306312599f392e23 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 30 Nov 2010 02:14:00 +0100 Subject: GtkStyleProvider: Add GtkStateFlags parameter to get_style_property(). Widget style properties can now have different values depending on the current state. --- gtk/gtkstyleprovider.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gtk/gtkstyleprovider.c') 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); } /** -- cgit v1.2.1