From 9b0a5b1fde07e68b7097d39f71708b284e80ea57 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 10 Aug 2020 21:31:49 -0400 Subject: [PATCH] Add sizes to toplevelsize warnings Might as well be informative while we're annoying. --- gdk/gdktoplevelsize.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/gdk/gdktoplevelsize.c b/gdk/gdktoplevelsize.c index 276e63f951..187939ba55 100644 --- a/gdk/gdktoplevelsize.c +++ b/gdk/gdktoplevelsize.c @@ -123,13 +123,19 @@ gdk_toplevel_size_validate (GdkToplevelSize *size) { if (size->min_width > size->bounds_width || size->min_height > size->bounds_height) - g_warning ("GdkToplevelSize: min_size exceeds bounds"); + g_warning ("GdkToplevelSize: min_size (%d, %d) exceeds bounds (%d, %d)", + size->min_width, size->min_height, + size->bounds_width, size->bounds_height); if (size->width > size->bounds_width || size->height > size->bounds_height) - g_warning ("GdkToplevelSize: size exceeds bounds"); + g_warning ("GdkToplevelSize: size (%d, %d) exceeds bounds (%d, %d)", + size->width, size->height, + size->bounds_width, size->bounds_height); if (size->min_width > size->width || size->min_height > size->height) - g_warning ("GdkToplevelSize: min_size exceeds size"); + g_warning ("GdkToplevelSize: min_size (%d, %d) exceeds size (%d, %d)", + size->min_width, size->min_height, + size->width, size->height); }