[gtk/wip/baedert/for-master: 43/56] widget: Only do a IS_ROOT type check if the parent is unset
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 43/56] widget: Only do a IS_ROOT type check if the parent is unset
- Date: Thu, 30 Apr 2020 07:12:33 +0000 (UTC)
commit f5559233e9f9f0b8a23e9a919a1e476e695d7ac5
Author: Timm Bäder <mail baedert org>
Date: Sun Apr 26 17:34:32 2020 +0200
widget: Only do a IS_ROOT type check if the parent is unset
So we do less type checks
gtk/gtkwidget.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index a0ad576816..ceede451ba 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -10440,7 +10440,7 @@ gtk_widget_set_alloc_needed (GtkWidget *widget)
if (!priv->visible)
break;
- if (GTK_IS_ROOT (widget))
+ if (!priv->parent && GTK_IS_ROOT (widget))
{
gtk_root_start_layout (GTK_ROOT (widget));
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]