[gtk+/gtk-3-20] css gadget: Fix baseline debug



commit 4cf61414622816211baf6a1e5327978d399e9000
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Apr 19 23:24:54 2016 -0400

    css gadget: Fix baseline debug
    
    We were not using the baseline that we're computing.

 gtk/gtkcssgadget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssgadget.c b/gtk/gtkcssgadget.c
index 5e0102c..f716395 100644
--- a/gtk/gtkcssgadget.c
+++ b/gtk/gtkcssgadget.c
@@ -927,7 +927,7 @@ gtk_css_gadget_draw (GtkCssGadget *gadget,
               }
             cairo_save (cr);
             cairo_new_path (cr);
-            cairo_move_to (cr, x + margin.left, priv->allocated_baseline + 0.5);
+            cairo_move_to (cr, x + margin.left, baseline + 0.5);
             cairo_rel_line_to (cr, width - margin.left - margin.right, 0);
             cairo_set_line_width (cr, 1.0);
             cairo_set_source_rgba (cr, 1.0, 0, 0.25, 0.25);


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