[gtk+/wip/matthiasc/render-node-vfunc: 5/6] expander: Update for new box gadget functionality



commit cb0ba8b0c8d2b469d6118218d67f1216dfe4f2ad
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Oct 28 12:57:39 2016 -0400

    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.

 gtk/gtkexpander.c |   26 +-------------------------
 1 files changed, 1 insertions(+), 25 deletions(-)
---
diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c
index 6250d5d..865b654 100644
--- a/gtk/gtkexpander.c
+++ b/gtk/gtkexpander.c
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]