[gtk+] gadget: Fix a thinko in baseline adjustment



commit 2bb80a9bb2127bf1d6cd4bd078a3cc03222e924a
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Dec 15 18:14:16 2015 -0500

    gadget: Fix a thinko in baseline adjustment
    
    We are making the allocation smaller, so the baseline
    needs to get smaller too, not bigger.

 gtk/gtkcssgadget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssgadget.c b/gtk/gtkcssgadget.c
index b3bf1c6..f1a0e97 100644
--- a/gtk/gtkcssgadget.c
+++ b/gtk/gtkcssgadget.c
@@ -547,7 +547,7 @@ gtk_css_gadget_allocate (GtkCssGadget        *gadget,
   content_allocation.width = allocation->width - extents.left - extents.right;
   content_allocation.height = allocation->height - extents.top - extents.bottom;
   if (baseline >= 0)
-    baseline += extents.top;
+    baseline -= extents.top;
 
   if (content_allocation.width < 0)
     {


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