[gtk/wip/baedert/for-master: 49/53] widget: Skip not-drawable widgets in snapshot_child
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 49/53] widget: Skip not-drawable widgets in snapshot_child
- Date: Wed, 29 Jan 2020 11:15:32 +0000 (UTC)
commit 92abf072d848be08a672494f6794e3bc5b317dc0
Author: Timm Bäder <mail baedert org>
Date: Mon Jan 27 14:21:44 2020 +0100
widget: Skip not-drawable widgets in snapshot_child
Otherwise we transform the snapshot just to not do anything.
gtk/gtkwidget.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 684ed5e141..f29b2936ca 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -12596,6 +12596,9 @@ gtk_widget_snapshot_child (GtkWidget *widget,
if (GTK_IS_NATIVE (child))
return;
+ if (!_gtk_widget_is_drawable (child))
+ return;
+
if (priv->transform)
{
gtk_snapshot_save (snapshot);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]