[murrine] Fixed the gradient of few themes on buttons with width < height



commit 6c2bf064df95c67abcc85a89accea13e45787c4c
Author: Andrea Cimitan <andrea cimitan gmail com>
Date:   Wed Mar 10 01:51:45 2010 +0100

    Fixed the gradient of few themes on buttons with width < height

 src/murrine_style.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/murrine_style.c b/src/murrine_style.c
index a9b2004..7b5259a 100644
--- a/src/murrine_style.c
+++ b/src/murrine_style.c
@@ -829,8 +829,8 @@ murrine_style_draw_box (DRAW_ARGS)
 		params.active = shadow_type == GTK_SHADOW_IN;
 
 		boolean horizontal = TRUE;
-		if (((float)width/height < 0.5) ||
-		    (murrine_style->glazestyle > 0 && width<height))
+		if (((float)width/height<0.5) ||
+		    (murrine_style->highlight_shade != 1.0 && murrine_style->glazestyle > 0 && width<height))
 			horizontal = FALSE;
 
 		if ((widget && (MRN_IS_COMBO_BOX_ENTRY (widget->parent) || MRN_IS_COMBO (widget->parent))))
@@ -932,7 +932,8 @@ murrine_style_draw_box (DRAW_ARGS)
 		spinbutton.style = murrine_style->spinbuttonstyle;
 
 		boolean horizontal = TRUE;
-		if (((float)width/height<0.5)|| (murrine_style->glazestyle > 0 && width<height))
+		if (((float)width/height<0.5) ||
+		    (murrine_style->highlight_shade != 1.0 && murrine_style->glazestyle > 0 && width<height))
 			horizontal = FALSE;
 
 		if (murrine_style->roundness > 0)



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