widget: Correctly handle which widgets to include in the clip

Previously, we would not include any child widget on the first
allocation, which happens right after realize(), but before map(). No
widget is drawable at that point.
This commit is contained in:
Benjamin Otte 2015-01-22 14:33:26 +01:00
parent bd31310c40
commit d879a13600

View File

@ -15578,7 +15578,8 @@ union_with_clip (GtkWidget *widget,
{
GtkAllocation widget_clip;
if (!gtk_widget_is_drawable (widget))
if (!gtk_widget_is_visible (widget) ||
!gtk_widget_get_child_visible (widget))
return;
gtk_widget_get_clip (widget, &widget_clip);