[murrine/arrowstyle: 2/2] Fixed border_shades in check and radio button (was inverted)



commit 040833bf88a731573c406db284860f59f196c3ac
Author: Andrea Cimitan <andrea cimitan gmail com>
Date:   Wed Nov 25 01:16:03 2009 +0100

    Fixed border_shades in check and radio button (was inverted)

 src/murrine_draw.c      |    4 ++--
 src/murrine_draw_rgba.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/murrine_draw.c b/src/murrine_draw.c
index 179643e..d3fbea6 100644
--- a/src/murrine_draw.c
+++ b/src/murrine_draw.c
@@ -2108,7 +2108,7 @@ murrine_draw_radiobutton (cairo_t *cr,
 		mrn_gradient_custom.border_shades[0] = 1.0;
 		mrn_gradient_custom.border_shades[1] = 1.0;
 	}
-	else if (draw_bullet)
+	else if (!draw_bullet)
 	{
 		mrn_gradient_custom = get_inverted_border_shades (mrn_gradient_custom);
 	}
@@ -2231,7 +2231,7 @@ murrine_draw_checkbox (cairo_t *cr,
 		mrn_gradient_custom.border_shades[0] = 1.0;
 		mrn_gradient_custom.border_shades[1] = 1.0;
 	}
-	else if (draw_bullet)
+	else if (!draw_bullet)
 	{
 		mrn_gradient_custom = get_inverted_border_shades (mrn_gradient_custom);
 	}
diff --git a/src/murrine_draw_rgba.c b/src/murrine_draw_rgba.c
index abdecfb..b96a1f3 100644
--- a/src/murrine_draw_rgba.c
+++ b/src/murrine_draw_rgba.c
@@ -1572,7 +1572,7 @@ murrine_rgba_draw_radiobutton (cairo_t *cr,
 		mrn_gradient_custom.border_shades[0] = 1.0;
 		mrn_gradient_custom.border_shades[1] = 1.0;
 	}
-	else if (draw_bullet)
+	else if (!draw_bullet)
 	{
 		mrn_gradient_custom = get_inverted_border_shades (mrn_gradient_custom);
 	}
@@ -1697,7 +1697,7 @@ murrine_rgba_draw_checkbox (cairo_t *cr,
 		mrn_gradient_custom.border_shades[0] = 1.0;
 		mrn_gradient_custom.border_shades[1] = 1.0;
 	}
-	else if (draw_bullet)
+	else if (!draw_bullet)
 	{
 		mrn_gradient_custom = get_inverted_border_shades (mrn_gradient_custom);
 	}



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