summaryrefslogtreecommitdiff
path: root/gtk/deprecated
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2014-06-10 20:18:37 +0200
committerBenjamin Otte <otte@redhat.com>2014-06-11 01:18:04 +0200
commit4a6957f50df96d9493c4a3058c5631a8894eea66 (patch)
tree4f56bae788b0688367df65aada36e97df3a57293 /gtk/deprecated
parente51e8a28dd2b62f4c7e6327313500ece928db591 (diff)
downloadgtk+-4a6957f50df96d9493c4a3058c5631a8894eea66.tar.gz
stylecontext: Remove state from _peek_style_property()
It evaluates to "current state" in all cases, so no need to special case it.
Diffstat (limited to 'gtk/deprecated')
-rw-r--r--gtk/deprecated/gtkstyle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/deprecated/gtkstyle.c b/gtk/deprecated/gtkstyle.c
index 55ad766d2d..d610a3417b 100644
--- a/gtk/deprecated/gtkstyle.c
+++ b/gtk/deprecated/gtkstyle.c
@@ -1153,7 +1153,7 @@ gtk_style_get_style_property (GtkStyle *style,
priv = GTK_STYLE_GET_PRIVATE (style);
peek_value = _gtk_style_context_peek_style_property (priv->context,
widget_type,
- 0, pspec);
+ pspec);
if (G_VALUE_TYPE (value) == G_PARAM_SPEC_VALUE_TYPE (pspec))
g_value_copy (peek_value, value);
@@ -1214,7 +1214,7 @@ gtk_style_get_valist (GtkStyle *style,
}
peek_value = _gtk_style_context_peek_style_property (priv->context, widget_type,
- 0, pspec);
+ pspec);
G_VALUE_LCOPY (peek_value, var_args, 0, &error);
if (error)
{