stylecontext: Remove state from _peek_style_property()

It evaluates to "current state" in all cases, so no need to special case
it.
This commit is contained in:
Benjamin Otte
2014-06-10 20:18:37 +02:00
parent e51e8a28dd
commit 4a6957f50d
4 changed files with 8 additions and 26 deletions

View File

@ -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)
{