[gnome-shell] Don't treat min-width and min-height as a fixed size



commit 47a92e7fc09c2e0411e559cd640131ccacc316bd
Author: Colin Walters <walters verbum org>
Date:   Wed May 12 16:50:36 2010 -0400

    Don't treat min-width and min-height as a fixed size
    
    I have no idea why there existed code that if we saw e.g. min-width
    without a width, we assigned min-width to ->width, thus effectively
    treating it as a maximum.
    
    Just delete that bit.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=618482

 src/st/st-theme-node.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/st/st-theme-node.c b/src/st/st-theme-node.c
index dfe629e..24846ae 100644
--- a/src/st/st-theme-node.c
+++ b/src/st/st-theme-node.c
@@ -1141,8 +1141,6 @@ _st_theme_node_ensure_geometry (StThemeNode *node)
       else if (node->width > node->max_width)
         node->width = node->max_width;
     }
-  else
-    node->width = node->min_width;
 
   if (node->height != -1)
     {
@@ -1155,8 +1153,6 @@ _st_theme_node_ensure_geometry (StThemeNode *node)
       else if (node->height > node->max_height)
         node->height = node->max_height;
     }
-  else
-    node->height = node->min_height;
 }
 
 int



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