[gtk: 1/2] gdk/toplevelsize: Remove warnings about exceeding bounds




commit 6ad2a049e7a15e357c27ef122b88fc9307b857e4
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Mon Feb 1 11:31:11 2021 +0100

    gdk/toplevelsize: Remove warnings about exceeding bounds
    
    Sometimes the size will exceed the minimum bounds. For example crazy
    applications like the widget factory that contains the world, or when a
    user interactively resizes a window to be larger than the monitor the
    window is on is.
    
    The former is questionable, but the latter is not, and from here we
    can't really see the difference, so just stop complaining.
    
    Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3035

 gdk/gdktoplevelsize.c | 17 -----------------
 1 file changed, 17 deletions(-)
---
diff --git a/gdk/gdktoplevelsize.c b/gdk/gdktoplevelsize.c
index 6932f6435b..66a4ddeadb 100644
--- a/gdk/gdktoplevelsize.c
+++ b/gdk/gdktoplevelsize.c
@@ -149,12 +149,6 @@ gdk_toplevel_size_validate (GdkToplevelSize *size)
 {
   int geometry_width, geometry_height;
 
-  if (size->min_width > size->bounds_width ||
-      size->min_height > size->bounds_height)
-    g_warning ("GdkToplevelSize: min_size (%d, %d) exceeds bounds (%d, %d)",
-               size->min_width, size->min_height,
-               size->bounds_width, size->bounds_height);
-
   geometry_width = size->width;
   geometry_height = size->height;
   if (size->shadow.is_valid)
@@ -162,15 +156,4 @@ gdk_toplevel_size_validate (GdkToplevelSize *size)
       geometry_width -= size->shadow.left + size->shadow.right;
       geometry_height -= size->shadow.top + size->shadow.bottom;
     }
-  if (geometry_width > size->bounds_width ||
-      geometry_height > size->bounds_height)
-    g_warning ("GdkToplevelSize: geometry 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 (%d, %d) exceeds size (%d, %d)",
-               size->min_width, size->min_height,
-               size->width, size->height);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]