widget: Special-case popover in snapshot

Just like we do it for GtkWindow.
This commit is contained in:
Timm Bäder 2017-05-06 16:32:17 +02:00 committed by Matthias Clasen
parent 1d4d5b2eb9
commit 2651fcbef9

View File

@ -15416,7 +15416,8 @@ gtk_widget_snapshot (GtkWidget *widget,
_gtk_widget_get_allocation (widget, &allocation);
if (!GTK_IS_WINDOW (widget))
if (!GTK_IS_WINDOW (widget) &&
!GTK_IS_POPOVER (widget))
{
gtk_snapshot_offset (snapshot, margin.left, margin.top);
gtk_css_style_snapshot_background (style,