css: Remove _gtk_css_computed_values_get_value_by_name()
Now that we use an enum for the IDs, we don't need that function anymore.
This commit is contained in:
parent
31565139ba
commit
a360e77a7b
@ -214,21 +214,6 @@ _gtk_css_computed_values_get_value (GtkCssComputedValues *values,
|
|||||||
return g_ptr_array_index (values->values, id);
|
return g_ptr_array_index (values->values, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
GtkCssValue *
|
|
||||||
_gtk_css_computed_values_get_value_by_name (GtkCssComputedValues *values,
|
|
||||||
const char *name)
|
|
||||||
{
|
|
||||||
GtkStyleProperty *prop;
|
|
||||||
|
|
||||||
g_return_val_if_fail (GTK_IS_CSS_COMPUTED_VALUES (values), NULL);
|
|
||||||
g_return_val_if_fail (name != NULL, NULL);
|
|
||||||
|
|
||||||
prop = _gtk_style_property_lookup (name);
|
|
||||||
g_assert (GTK_IS_CSS_STYLE_PROPERTY (prop));
|
|
||||||
|
|
||||||
return _gtk_css_computed_values_get_value (values, _gtk_css_style_property_get_id (GTK_CSS_STYLE_PROPERTY (prop)));
|
|
||||||
}
|
|
||||||
|
|
||||||
GtkCssSection *
|
GtkCssSection *
|
||||||
_gtk_css_computed_values_get_section (GtkCssComputedValues *values,
|
_gtk_css_computed_values_get_section (GtkCssComputedValues *values,
|
||||||
guint id)
|
guint id)
|
||||||
|
@ -67,8 +67,6 @@ void _gtk_css_computed_values_set_value (GtkCssCom
|
|||||||
|
|
||||||
GtkCssValue * _gtk_css_computed_values_get_value (GtkCssComputedValues *values,
|
GtkCssValue * _gtk_css_computed_values_get_value (GtkCssComputedValues *values,
|
||||||
guint id);
|
guint id);
|
||||||
GtkCssValue * _gtk_css_computed_values_get_value_by_name (GtkCssComputedValues *values,
|
|
||||||
const char *name);
|
|
||||||
GtkCssSection * _gtk_css_computed_values_get_section (GtkCssComputedValues *values,
|
GtkCssSection * _gtk_css_computed_values_get_section (GtkCssComputedValues *values,
|
||||||
guint id);
|
guint id);
|
||||||
|
|
||||||
|
@ -1006,7 +1006,7 @@ style_data_lookup (GtkStyleContext *context)
|
|||||||
if (priv->theming_engine)
|
if (priv->theming_engine)
|
||||||
g_object_unref (priv->theming_engine);
|
g_object_unref (priv->theming_engine);
|
||||||
|
|
||||||
v = _gtk_css_computed_values_get_value_by_name (info->data->store, "engine");
|
v = _gtk_css_computed_values_get_value (info->data->store, GTK_CSS_PROPERTY_ENGINE);
|
||||||
if (v)
|
if (v)
|
||||||
priv->theming_engine = _gtk_css_value_dup_object (v);
|
priv->theming_engine = _gtk_css_value_dup_object (v);
|
||||||
else
|
else
|
||||||
@ -2920,7 +2920,7 @@ gtk_style_context_notify_state_change (GtkStyleContext *context,
|
|||||||
gtk_style_context_set_state (context, flags);
|
gtk_style_context_set_state (context, flags);
|
||||||
data = style_data_lookup (context);
|
data = style_data_lookup (context);
|
||||||
gtk_style_context_restore (context);
|
gtk_style_context_restore (context);
|
||||||
v = _gtk_css_computed_values_get_value_by_name (data->store, "transition");
|
v = _gtk_css_computed_values_get_value (data->store, GTK_CSS_PROPERTY_TRANSITION);
|
||||||
if (!v)
|
if (!v)
|
||||||
return;
|
return;
|
||||||
desc = _gtk_css_value_get_boxed (v);
|
desc = _gtk_css_value_get_boxed (v);
|
||||||
|
Loading…
Reference in New Issue
Block a user