Commit 88a90b8a authored by Havoc Pennington's avatar Havoc Pennington Committed by Matthias Clasen

Warn if a widget requests minimum size > natural size

Since this makes no sense and there's no reason we should
have to check for it elsewhere just in case some widget is
parent d7d940c7
......@@ -282,6 +282,12 @@ compute_size_for_orientation (GtkSizeRequest *request,
&min_size, &nat_size);
if (min_size > nat_size)
g_warning ("%s %p reported min size %d and natural size %d; natural size must be >= min size",
G_OBJECT_TYPE_NAME (request), request, min_size, nat_size);
/* Support for dangling "size-request" signals and forward derived
* classes that will not default to a ->get_width() that
* returns the values in the ->requisition cache.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment