[gtk/wip/otte/for-main: 1/2] widget: Don't queue an allocate on a nonexisting parent
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/for-main: 1/2] widget: Don't queue an allocate on a nonexisting parent
- Date: Sun, 26 Dec 2021 21:58:58 +0000 (UTC)
commit 7149bfd100c97e5cf91586cff9915695bf2f1028
Author: Benjamin Otte <otte redhat com>
Date: Sun Dec 26 22:17:54 2021 +0100
widget: Don't queue an allocate on a nonexisting parent
No test, no idea how to trigger this reliably.
gtk/gtkwidget.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 092f763bdc..afe7e9224e 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -4971,7 +4971,8 @@ gtk_widget_real_css_changed (GtkWidget *widget,
{
gtk_widget_queue_resize (widget);
}
- else if (gtk_css_style_change_affects (change, GTK_CSS_AFFECTS_TRANSFORM))
+ else if (gtk_css_style_change_affects (change, GTK_CSS_AFFECTS_TRANSFORM) &&
+ priv->parent)
{
gtk_widget_queue_allocate (priv->parent);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]