diff options
author | Timm Bäder <mail@baedert.org> | 2017-06-25 19:01:41 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-06-28 13:20:59 +0200 |
commit | b48e371a51389f00546f6ae9c9cb0f719fa0c279 (patch) | |
tree | 36c5827434b2125312a7a8f676b5501a65c6fb59 | |
parent | e607da8d91381e8780abd420c602369c025ac937 (diff) | |
download | gtk+-b48e371a51389f00546f6ae9c9cb0f719fa0c279.tar.gz |
container: Remove get_children_clip
Unused.
-rw-r--r-- | gtk/gtkcontainer.c | 32 | ||||
-rw-r--r-- | gtk/gtkcontainerprivate.h | 2 |
2 files changed, 0 insertions, 34 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 diff --git a/gtk/gtkcontainerprivate.h b/gtk/gtkcontainerprivate.h index a737744628..fdbb5d4b7c 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); |