diff options
author | Benjamin Otte <otte@redhat.com> | 2011-04-28 21:25:29 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-04-28 22:21:45 +0200 |
commit | 7e2eed8c1b7c9e4138833232ca4af4fddaa26a45 (patch) | |
tree | 1498f5e7074743ac6085d0c0aaf723bfa0028706 /gtk/gtkwidget.c | |
parent | 6e3b4af3c5f9f3211a1fa4f5bcdf4c5ece195ec7 (diff) | |
download | gtk+-7e2eed8c1b7c9e4138833232ca4af4fddaa26a45.tar.gz |
widget: Update underallocation warning
Also print the parent widget. As the parent's size_allocate
implementation is usually the culprit for this warning happening, it
makes sense to print it.
Diffstat (limited to 'gtk/gtkwidget.c')
-rw-r--r-- | gtk/gtkwidget.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index f45d490411..86e59d3df8 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -4817,8 +4817,9 @@ gtk_widget_size_allocate (GtkWidget *widget, } if (min_width > real_allocation.width || min_height > real_allocation.height) - g_warning ("gtk_widget_size_allocate(): attempt to underallocate %s %p. " + g_warning ("gtk_widget_size_allocate(): attempt to underallocate %s%s %s %p. " "Allocation is %dx%d, but minimum required size is %dx%d.", + priv->parent ? G_OBJECT_TYPE_NAME (priv->parent) : "", priv->parent ? "'s child" : "toplevel", G_OBJECT_TYPE_NAME (widget), widget, real_allocation.width, real_allocation.height, min_width, min_height); |