Commit f204473e authored by Benjamin Otte's avatar Benjamin Otte

cssvalue: Add _gtk_css_initial_value_get()

... so we don't bump a refcount whenever we get the initial singleton.

We want to use this function instead of
_gtk_css_style_property_get_initial_value() everywhere where we compute
values, because some initial values may depend on settings soon.
parent 2ab65ef7
......@@ -86,3 +86,9 @@ _gtk_css_initial_value_new (void)
return _gtk_css_value_ref (&initial);
GtkCssValue *
_gtk_css_initial_value_get (void)
return &initial;
......@@ -25,6 +25,7 @@
GtkCssValue * _gtk_css_initial_value_new (void);
GtkCssValue * _gtk_css_initial_value_get (void);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment