[murrine] Partially fix spinbuttonstyle = 1 with some spinbuttons
- From: Andrea Cimitan <acimitan src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [murrine] Partially fix spinbuttonstyle = 1 with some spinbuttons
- Date: Sat, 2 Jan 2010 09:40:42 +0000 (UTC)
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]