Commit 776d99ac authored by Benjamin Otte's avatar Benjamin Otte

stylecontext: Call get_style(), not create_style()

We want to ensure that the style is created properly.

This also allows making the create_Style() function private.
parent 092ff983
......@@ -177,7 +177,7 @@ store_in_global_parent_cache (GtkCssNode *node,
g_object_ref (style));
GtkCssStyle *
static GtkCssStyle *
gtk_css_node_create_style (GtkCssNode *cssnode)
const GtkCssNodeDeclaration *decl;
......@@ -131,10 +131,8 @@ GList * gtk_css_node_list_regions (GtkCssNode *
const GtkCssNodeDeclaration *
gtk_css_node_get_declaration (GtkCssNode *cssnode);
GtkCssStyle * gtk_css_node_get_style (GtkCssNode *cssnode);
GtkCssStyle * gtk_css_node_create_style (GtkCssNode *cssnode);
void gtk_css_node_invalidate_style_provider
(GtkCssNode *cssnode);
......@@ -525,7 +525,7 @@ gtk_style_context_lookup_style_for_state (GtkStyleContext *context,
node = gtk_css_transient_node_new (context->priv->cssnode);
gtk_css_node_set_parent (node, gtk_css_node_get_parent (context->priv->cssnode));
gtk_css_node_set_state (node, state);
values = gtk_css_node_create_style (node);
values = g_object_ref (gtk_css_node_get_style (node));
gtk_css_node_set_parent (node, NULL);
g_object_unref (node);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment