[murrine] Partially fix spinbuttonstyle = 1 with some spinbuttons



commit 0e5ef269a0479007e8333e1fb9d87eecfaf3bbaf
Author: Andrea Cimitan <andrea cimitan gmail com>
Date:   Sat Jan 2 10:39:29 2010 +0100

    Partially fix spinbuttonstyle = 1 with some spinbuttons

 src/murrine_draw.c      |    4 ++++
 src/murrine_draw_rgba.c |    6 +++++-
 2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/murrine_draw.c b/src/murrine_draw.c
index e7dd0a4..a32521c 100644
--- a/src/murrine_draw.c
+++ b/src/murrine_draw.c
@@ -401,8 +401,12 @@ murrine_draw_spinbutton (cairo_t *cr,
 	                     int x, int y, int width, int height,
 	                     boolean horizontal)
 {
+	cairo_save (cr);
+	
 	widget->style_functions->draw_button (cr, colors, widget, x, y, width, height, horizontal);
 
+	cairo_restore (cr);
+
 	switch (spinbutton->style)
 	{
 		default:
diff --git a/src/murrine_draw_rgba.c b/src/murrine_draw_rgba.c
index b79d168..5177352 100644
--- a/src/murrine_draw_rgba.c
+++ b/src/murrine_draw_rgba.c
@@ -436,8 +436,12 @@ murrine_rgba_draw_spinbutton (cairo_t *cr,
 	                          int x, int y, int width, int height,
 	                          boolean horizontal)
 {
+	cairo_save (cr);
+
 	widget->style_functions->draw_button (cr, colors, widget, x, y, width, height, horizontal);
-	
+
+	cairo_restore (cr);
+
 	switch (spinbutton->style)
 	{
 		default:



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