[gtk+] icon helper: Don't set baseline to 0



commit abd781a2c99803d2e08665ad1bda5f08dba49723
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Feb 25 13:18:02 2016 -0500

    icon helper: Don't set baseline to 0
    
    It is clearly not the intention that the baseline of icons is at
    the very top. The visible effect of this was that spin buttons were
    higher than expeted, because the box gadget was trying to line up
    the baseline of the text with the top of the buttons, forcing extra
    height to be requested.
    
    Just don't set a baseline at all for now.

 gtk/gtkiconhelper.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c
index 2ee91e8..43e6f67 100644
--- a/gtk/gtkiconhelper.c
+++ b/gtk/gtkiconhelper.c
@@ -123,11 +123,6 @@ gtk_icon_helper_get_preferred_size (GtkCssGadget   *gadget,
     *minimum = *natural = icon_width;
   else
     *minimum = *natural = icon_height;
-
-  if (minimum_baseline)
-    *minimum_baseline = 0;
-  if (natural_baseline)
-    *natural_baseline = 0;
 }
 
 static void


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