[gtk+/wip/baedert/drawing: 205/371] widget: Remove queue_draw_child vfunc



commit 2ca83dedfb7c8e67c791ed8294d934ee9a865982
Author: Timm Bäder <mail baedert org>
Date:   Sat May 27 14:39:54 2017 +0200

    widget: Remove queue_draw_child vfunc

 gtk/gtkwidget.c |   19 +++----------------
 gtk/gtkwidget.h |    4 ----
 2 files changed, 3 insertions(+), 20 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 9c02445..b266ea8 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -705,9 +705,6 @@ static void             gtk_widget_real_state_flags_changed     (GtkWidget
                                                                  GtkStateFlags     old_state);
 static void             gtk_widget_real_queue_draw_region       (GtkWidget         *widget,
                                                                 const cairo_region_t *region);
-static void             gtk_widget_real_queue_draw_child        (GtkWidget         *widget,
-                                                                 GtkWidget         *child,
-                                                                const cairo_region_t *region);
 static AtkObject*      gtk_widget_real_get_accessible          (GtkWidget        *widget);
 static void            gtk_widget_accessible_interface_init    (AtkImplementorIface *iface);
 static AtkObject*      gtk_widget_ref_accessible               (AtkImplementor *implementor);
@@ -1132,7 +1129,6 @@ gtk_widget_class_init (GtkWidgetClass *klass)
   klass->get_accessible = gtk_widget_real_get_accessible;
 
   klass->queue_draw_region = gtk_widget_real_queue_draw_region;
-  klass->queue_draw_child = gtk_widget_real_queue_draw_child;
 
   klass->pick = gtk_widget_real_pick;
 
@@ -4978,11 +4974,10 @@ gtk_widget_unrealize (GtkWidget *widget)
 /*****************************************
  * Draw queueing.
  *****************************************/
-
 static void
-gtk_widget_real_queue_draw_child (GtkWidget            *widget,
-                                  GtkWidget            *child,
-                                 const cairo_region_t *child_region)
+gtk_widget_queue_draw_child (GtkWidget            *widget,
+                             GtkWidget            *child,
+                             const cairo_region_t *child_region)
 {
   GdkWindow *child_window, *window;
   cairo_region_t *region;
@@ -5015,14 +5010,6 @@ gtk_widget_real_queue_draw_child (GtkWidget            *widget,
 }
 
 static void
-gtk_widget_queue_draw_child (GtkWidget            *parent,
-                             GtkWidget            *child,
-                             const cairo_region_t *region)
-{
-  WIDGET_CLASS (parent)->queue_draw_child (parent, child, region);
-}
-
-static void
 gtk_widget_real_queue_draw_region (GtkWidget            *widget,
                                   const cairo_region_t *region)
 {
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index 175c58e..ce94238 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -473,10 +473,6 @@ struct _GtkWidgetClass
 
   void         (* queue_draw_region)           (GtkWidget            *widget,
                                                const cairo_region_t *region);
-  void         (* queue_draw_child)            (GtkWidget            *widget,
-                                                GtkWidget            *child,
-                                               const cairo_region_t *region);
-
   void         (* snapshot)                    (GtkWidget            *widget,
                                                 GtkSnapshot          *snapshot);
 


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