[gtk+/wip/baedert/drawing: 8/30] box: Remove css box drawing



commit 8be19957a898e68c932668b45c8a743195ea6ddc
Author: Timm Bäder <mail baedert org>
Date:   Wed May 3 10:18:28 2017 +0200

    box: Remove css box drawing

 gtk/gtkbox.c |   26 +-------------------------
 1 files changed, 1 insertions(+), 25 deletions(-)
---
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c
index 9d55191..e233236 100644
--- a/gtk/gtkbox.c
+++ b/gtk/gtkbox.c
@@ -185,8 +185,6 @@ static void gtk_box_measure (GtkWidget      *widget,
                              int            *natural,
                              int            *minimum_baseline,
                              int            *natural_baseline);
-static void gtk_box_snapshot (GtkWidget   *widget,
-                              GtkSnapshot *snapshot);
 
 G_DEFINE_TYPE_WITH_CODE (GtkBox, gtk_box, GTK_TYPE_CONTAINER,
                          G_ADD_PRIVATE (GtkBox)
@@ -214,7 +212,6 @@ gtk_box_class_init (GtkBoxClass *class)
   object_class->get_property = gtk_box_get_property;
   object_class->dispose = gtk_box_dispose;
 
-  widget_class->snapshot = gtk_box_snapshot;
   widget_class->size_allocate = gtk_box_size_allocate;
   widget_class->measure = gtk_box_measure;
   widget_class->direction_changed = gtk_box_direction_changed;
@@ -343,27 +340,6 @@ gtk_box_get_property (GObject    *object,
     }
 }
 
-static gboolean
-gtk_box_snapshot_contents (GtkCssGadget *gadget,
-                           GtkSnapshot  *snapshot,
-                           int           x,
-                           int           y,
-                           int           width,
-                           int           height,
-                           gpointer      data)
-{
-  GTK_WIDGET_CLASS (gtk_box_parent_class)->snapshot (gtk_css_gadget_get_owner (gadget), snapshot);
-
-  return FALSE;
-}
-
-static void
-gtk_box_snapshot (GtkWidget   *widget,
-                  GtkSnapshot *snapshot)
-{
-  gtk_css_gadget_snapshot (GTK_BOX (widget)->priv->gadget, snapshot);
-}
-
 static void
 count_expand_children (GtkBox *box,
                        gint *visible_children,
@@ -1467,7 +1443,7 @@ gtk_box_init (GtkBox *box)
                                                         GTK_WIDGET (box),
                                                         gtk_box_get_content_size,
                                                         gtk_box_allocate_contents,
-                                                        gtk_box_snapshot_contents,
+                                                        NULL,
                                                         NULL,
                                                         NULL);
 


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