stylecontext: Get rid of create_query_path()

Move that functionality into GtkCssNode.
This commit is contained in:
Benjamin Otte
2015-01-24 20:57:17 +01:00
parent 6f99a3cdb0
commit d79a44c1af
3 changed files with 31 additions and 39 deletions

View File

@ -27,11 +27,23 @@ static GtkWidgetPath *
gtk_css_widget_node_create_widget_path (GtkCssNode *node)
{
GtkCssWidgetNode *widget_node = GTK_CSS_WIDGET_NODE (node);
GtkWidgetPath *path;
guint length;
if (widget_node->widget == NULL)
return gtk_widget_path_new ();
path = gtk_widget_path_new ();
else
path = _gtk_widget_create_path (widget_node->widget);
length = gtk_widget_path_length (path);
if (length > 0)
{
gtk_css_node_declaration_add_to_widget_path (gtk_css_node_get_declaration (node),
path,
length - 1);
}
return _gtk_widget_create_path (widget_node->widget);
return path;
}
static const GtkWidgetPath *