[gtk+/wip/baedert/drawing: 304/396] container: Remove get_children_clip



commit 75ec38360b90f9d1464f99682271ffb641dd8b5d
Author: Timm Bäder <mail baedert org>
Date:   Sun Jun 25 19:01:41 2017 +0200

    container: Remove get_children_clip
    
    Unused.

 gtk/gtkcontainer.c        |   32 --------------------------------
 gtk/gtkcontainerprivate.h |    2 --
 2 files changed, 0 insertions(+), 34 deletions(-)
---
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index e8236a2..8180939 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -2938,38 +2938,6 @@ gtk_container_should_propagate_draw (GtkContainer   *container,
   return TRUE;
 }
 
-static void
-union_with_clip (GtkWidget     *widget,
-                 GtkAllocation *clip)
-{
-  GtkAllocation widget_clip;
-
-  if (!gtk_widget_is_visible (widget) ||
-      !_gtk_widget_get_child_visible (widget))
-    return;
-
-  gtk_widget_get_clip (widget, &widget_clip);
-
-  if (clip->width == 0 || clip->height == 0)
-    *clip = widget_clip;
-  else
-    gdk_rectangle_union (&widget_clip, clip, clip);
-}
-
-void
-gtk_container_get_children_clip (GtkContainer  *container,
-                                 GtkAllocation *out_clip)
-{
-  GtkWidget *child;
-
-  memset (out_clip, 0, sizeof (GtkAllocation));
-
-  for (child = _gtk_widget_get_first_child (GTK_WIDGET (container));
-       child != NULL;
-       child = _gtk_widget_get_next_sibling (child))
-    union_with_clip (child, out_clip);
-}
-
 /**
  * gtk_container_propagate_draw:
  * @container: a #GtkContainer
diff --git a/gtk/gtkcontainerprivate.h b/gtk/gtkcontainerprivate.h
index a737744..fdbb5d4 100644
--- a/gtk/gtkcontainerprivate.h
+++ b/gtk/gtkcontainerprivate.h
@@ -36,8 +36,6 @@ GList *  _gtk_container_focus_sort             (GtkContainer     *container,
 
 void      _gtk_container_stop_idle_sizer        (GtkContainer *container);
 void      _gtk_container_maybe_start_idle_sizer (GtkContainer *container);
-void      gtk_container_get_children_clip       (GtkContainer  *container,
-                                                 GtkAllocation *out_clip);
 void      gtk_container_set_focus_child         (GtkContainer     *container,
                                                  GtkWidget        *child);
 


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