[gtk-theme-engine-clearlooks] Bug 637942 - Missing arrow in GtkSpinButton



commit a24b0c398d36e6f52c39edd2ae7185d49d210605
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Dec 24 19:03:38 2010 +0100

    Bug 637942 - Missing arrow in GtkSpinButton
    
    Add missing cairo_save/restore() so the render_operation
    doesn't leave a context with translated coordinates.

 src/clearlooks_draw.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/clearlooks_draw.c b/src/clearlooks_draw.c
index 700d951..29e6c8e 100644
--- a/src/clearlooks_draw.c
+++ b/src/clearlooks_draw.c
@@ -2733,6 +2733,8 @@ _clearlooks_draw_arrow (cairo_t *cr, const CairoColor *color,
                         gdouble angle, ClearlooksArrowType type,
                         double x, double y, double width, double height)
 {
+	cairo_save (cr);
+
 	if (type == CL_ARROW_NORMAL)
 	{
 		cairo_translate (cr, x, y);
@@ -2744,6 +2746,8 @@ _clearlooks_draw_arrow (cairo_t *cr, const CairoColor *color,
 		cairo_translate (cr, x, y);
 		clearlooks_draw_combo_arrow (cr, color, 0, 0, width, height);
 	}
+
+	cairo_restore (cr);
 }
 
 static void



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