From 94093fd18ebfdd562f3697de88b411f1a66a26f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 23 Feb 2018 10:27:35 +0100 Subject: [PATCH] widget: Improve warning for negative size_allocate dimensions Print widget class, css node name and address. --- gtk/gtkwidget.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index ab86789f0d..e5a857e767 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -4542,7 +4542,8 @@ gtk_widget_size_allocate (GtkWidget *widget, if (real_allocation.width < 0 || real_allocation.height < 0) { - g_warning ("gtk_widget_size_allocate(): attempt to allocate widget with width %d and height %d", + g_warning ("gtk_widget_size_allocate(): attempt to allocate %s %s %p with width %d and height %d", + G_OBJECT_TYPE_NAME (widget), gtk_css_node_get_name (priv->cssnode), widget, real_allocation.width, real_allocation.height);