forked from AuroraMiddleware/gtk
expander: Update for new box gadget functionality
The box gadget now does the render node conversion for all its children, so we have less work to do.
This commit is contained in:
parent
953c7ba6be
commit
18f321df94
@ -632,31 +632,7 @@ static GskRenderNode *
|
||||
gtk_expander_get_render_node (GtkWidget *widget,
|
||||
GskRenderer *renderer)
|
||||
{
|
||||
GskRenderNode *res;
|
||||
GskRenderNode *node;
|
||||
|
||||
res = gtk_css_gadget_get_render_node (GTK_EXPANDER (widget)->priv->gadget,
|
||||
renderer,
|
||||
FALSE);
|
||||
|
||||
if (res == NULL)
|
||||
return NULL;
|
||||
|
||||
node = gtk_css_gadget_get_render_node (GTK_EXPANDER (widget)->priv->title_gadget,
|
||||
renderer,
|
||||
FALSE);
|
||||
gsk_render_node_append_child (res, node);
|
||||
gsk_render_node_unref (node);
|
||||
|
||||
node = gtk_css_gadget_get_render_node (GTK_EXPANDER (widget)->priv->arrow_gadget,
|
||||
renderer,
|
||||
FALSE);
|
||||
gsk_render_node_append_child (res, node);
|
||||
gsk_render_node_unref (node);
|
||||
|
||||
gtk_container_propagate_render_node (GTK_CONTAINER (widget), renderer, res);
|
||||
|
||||
return res;
|
||||
return gtk_css_gadget_get_render_node (GTK_EXPANDER (widget)->priv->gadget, renderer, FALSE);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user