[gtk+/wip/baedert/drawing: 119/348] widget: Special-case popover in snapshot
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 119/348] widget: Special-case popover in snapshot
- Date: Sat, 8 Jul 2017 10:40:49 +0000 (UTC)
commit 2a9b7ca02fcf7c10913f4b56e210582e913c32a5
Author: Timm Bäder <mail baedert org>
Date: Sat May 6 16:32:17 2017 +0200
widget: Special-case popover in snapshot
Just like we do it for GtkWindow.
gtk/gtkwidget.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 57c8a64..43c8b0c 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]