summaryrefslogtreecommitdiff
path: root/gtk/gtkcontainer.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-06-25 19:01:41 +0200
committerMatthias Clasen <mclasen@redhat.com>2017-07-19 21:27:14 -0400
commitf9f6f3027df579fef6f78abeddc62bb138b47ad3 (patch)
tree1fdef224f0923f64416bda1c1881d4c9cc20b159 /gtk/gtkcontainer.c
parent27202ff6cb47d21201567631c6404a4ebe3a81b5 (diff)
downloadgtk+-f9f6f3027df579fef6f78abeddc62bb138b47ad3.tar.gz
container: Remove get_children_clip
Unused.
Diffstat (limited to 'gtk/gtkcontainer.c')
-rw-r--r--gtk/gtkcontainer.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index e8236a2473..8180939f17 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