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



commit 35639b5b37d62c9aa707ebbf67f324313ee276b2
Author: Timm Bäder <mail baedert org>
Date:   Wed May 3 10:24:55 2017 +0200

    listbox: Remove css box drawing

 gtk/gtklistbox.c |   63 +----------------------------------------------------
 1 files changed, 2 insertions(+), 61 deletions(-)
---
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index b9dd5f6..acdbfe1 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -210,8 +210,6 @@ static GSequenceIter*       gtk_list_box_get_previous_visible         (GtkListBo
                                                                        GSequenceIter       *iter);
 static GtkListBoxRow       *gtk_list_box_get_first_focusable          (GtkListBox          *box);
 static GtkListBoxRow       *gtk_list_box_get_last_focusable           (GtkListBox          *box);
-static void                 gtk_list_box_snapshot                     (GtkWidget           *widget,
-                                                                       GtkSnapshot         *snapshot);
 static void                 gtk_list_box_realize                      (GtkWidget           *widget);
 static void                 gtk_list_box_unrealize                    (GtkWidget           *widget);
 static void                 gtk_list_box_map                          (GtkWidget           *widget);
@@ -295,13 +293,6 @@ static void gtk_list_box_measure_ (GtkWidget     *widget,
                                    int            *natural,
                                    int            *minimum_baseline,
                                    int            *natural_baseline);
-static gboolean gtk_list_box_render      (GtkCssGadget        *gadget,
-                                          GtkSnapshot         *snapshot,
-                                          int                  x,
-                                          int                  y,
-                                          int                  width,
-                                          int                  height,
-                                          gpointer             data);
 
 
 
@@ -420,7 +411,6 @@ gtk_list_box_class_init (GtkListBoxClass *klass)
   widget_class->motion_notify_event = gtk_list_box_motion_notify_event;
   widget_class->show = gtk_list_box_show;
   widget_class->focus = gtk_list_box_focus;
-  widget_class->snapshot = gtk_list_box_snapshot;
   widget_class->realize = gtk_list_box_realize;
   widget_class->unrealize = gtk_list_box_unrealize;
   widget_class->map = gtk_list_box_map;
@@ -657,7 +647,7 @@ gtk_list_box_init (GtkListBox *box)
                                                      GTK_WIDGET (box),
                                                      gtk_list_box_measure,
                                                      gtk_list_box_allocate,
-                                                     gtk_list_box_render,
+                                                     NULL,
                                                      NULL,
                                                      NULL);
 
@@ -2124,29 +2114,6 @@ gtk_list_box_focus (GtkWidget        *widget,
 }
 
 static void
-gtk_list_box_snapshot (GtkWidget   *widget,
-                       GtkSnapshot *snapshot)
-{
-  gtk_css_gadget_snapshot (BOX_PRIV (widget)->gadget, snapshot);
-}
-
-static gboolean
-gtk_list_box_render (GtkCssGadget *gadget,
-                     GtkSnapshot  *snapshot,
-                     int           x,
-                     int           y,
-                     int           width,
-                     int           height,
-                     gpointer      data)
-{
-  GtkWidget *widget = gtk_css_gadget_get_owner (gadget);
-
-  GTK_WIDGET_CLASS (gtk_list_box_parent_class)->snapshot (widget, snapshot);
-
-  return FALSE;
-}
-
-static void
 gtk_list_box_realize (GtkWidget *widget)
 {
   GtkListBox *box = GTK_LIST_BOX (widget);
@@ -3282,31 +3249,6 @@ gtk_list_box_row_hide (GtkWidget *widget)
 }
 
 static void
-gtk_list_box_row_snapshot (GtkWidget   *widget,
-                           GtkSnapshot *snapshot)
-{
-  gtk_css_gadget_snapshot (ROW_PRIV (GTK_LIST_BOX_ROW (widget))->gadget, snapshot);
-}
-
-static gboolean
-gtk_list_box_row_render (GtkCssGadget *gadget,
-                         GtkSnapshot  *snapshot,
-                         int           x,
-                         int           y,
-                         int           width,
-                         int           height,
-                         gpointer      data)
-{
-  GtkWidget *widget;
-
-  widget = gtk_css_gadget_get_owner (gadget);
-
-  GTK_WIDGET_CLASS (gtk_list_box_row_parent_class)->snapshot (widget, snapshot);
-
-  return gtk_widget_has_visible_focus (widget);
-}
-
-static void
 gtk_list_box_row_measure (GtkCssGadget   *gadget,
                           GtkOrientation  orientation,
                           int             for_size,
@@ -3731,7 +3673,6 @@ gtk_list_box_row_class_init (GtkListBoxRowClass *klass)
 
   widget_class->show = gtk_list_box_row_show;
   widget_class->hide = gtk_list_box_row_hide;
-  widget_class->snapshot = gtk_list_box_row_snapshot;
   widget_class->measure = gtk_list_box_row_measure_;
   widget_class->size_allocate = gtk_list_box_row_size_allocate;
   widget_class->focus = gtk_list_box_row_focus;
@@ -3797,7 +3738,7 @@ gtk_list_box_row_init (GtkListBoxRow *row)
                                                      GTK_WIDGET (row),
                                                      gtk_list_box_row_measure,
                                                      gtk_list_box_row_allocate,
-                                                     gtk_list_box_row_render,
+                                                     NULL,
                                                      NULL,
                                                      NULL);
   gtk_css_gadget_add_class (ROW_PRIV (row)->gadget, "activatable");


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