[gtk+/wip/baedert/drawing: 36/99] stack: Remove css box drawing



commit 55fdd03b96f138468e6df60e80cfb7b40c703329
Author: Timm Bäder <mail baedert org>
Date:   Wed May 3 11:33:37 2017 +0200

    stack: Remove css box drawing

 gtk/gtkstack.c |   20 +-------------------
 1 files changed, 1 insertions(+), 19 deletions(-)
---
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index 2171cfc..81df915 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -2073,22 +2073,6 @@ gtk_stack_snapshot (GtkWidget   *widget,
   GtkStack *stack = GTK_STACK (widget);
   GtkStackPrivate *priv = gtk_stack_get_instance_private (stack);
 
-  gtk_css_gadget_snapshot (priv->gadget, snapshot);
-}
-
-static gboolean
-gtk_stack_render (GtkCssGadget *gadget,
-                  GtkSnapshot  *snapshot,
-                  int           x,
-                  int           y,
-                  int           width,
-                  int           height,
-                  gpointer      data)
-{
-  GtkWidget *widget = gtk_css_gadget_get_owner (gadget);
-  GtkStack *stack = GTK_STACK (widget);
-  GtkStackPrivate *priv = gtk_stack_get_instance_private (stack);
-
   if (priv->visible_child)
     {
       if (gtk_progress_tracker_get_state (&priv->tracker) != GTK_PROGRESS_STATE_AFTER)
@@ -2149,8 +2133,6 @@ gtk_stack_render (GtkCssGadget *gadget,
                                    priv->visible_child->widget,
                                    snapshot);
     }
-
-  return FALSE;
 }
 
 static void
@@ -2357,7 +2339,7 @@ gtk_stack_init (GtkStack *stack)
                                                      GTK_WIDGET (stack),
                                                      gtk_stack_measure,
                                                      gtk_stack_allocate,
-                                                     gtk_stack_render,
+                                                     NULL,
                                                      NULL,
                                                      NULL);
 


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