popover: Set overflow: hidden

This keeps overlay scrollbars from wrecking our
nice rounded corners.

Fixes: #3012
This commit is contained in:
Matthias Clasen 2020-08-04 11:09:45 -04:00
parent bbb15f65a7
commit d6e352e862

View File

@ -869,6 +869,7 @@ gtk_popover_init (GtkPopover *popover)
(GtkGizmoGrabFocusFunc)gtk_widget_grab_focus_child);
gtk_widget_set_layout_manager (priv->contents_widget, gtk_bin_layout_new ());
gtk_widget_set_parent (priv->contents_widget, GTK_WIDGET (popover));
gtk_widget_set_overflow (priv->contents_widget, GTK_OVERFLOW_HIDDEN);
gtk_widget_add_css_class (widget, "background");