[murrine] Checks for height>width in slider to determine if it's horizontal. Seems to work better



commit 94038c9500a0054bc5b3c2982a2fa89171013eab
Author: Andrea Cimitan <andrea cimitan gmail com>
Date:   Wed Jul 28 00:49:49 2010 +0200

    Checks for height>width in slider to determine if it's horizontal. Seems to work better

 src/murrine_style.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/murrine_style.c b/src/murrine_style.c
index cdf4e8c..241d626 100644
--- a/src/murrine_style.c
+++ b/src/murrine_style.c
@@ -1303,8 +1303,13 @@ murrine_style_draw_box (DRAW_ARGS)
 		button.has_default_button_color = FALSE;
 
 		boolean horizontal = TRUE;
-		if (DETAIL ("vscale"))
-			horizontal = FALSE;
+
+		/* Different heuristic:
+		 * if (DETAIL ("vscale"))
+		 *	horizontal = FALSE;
+		 */
+		if (height > width)
+			horizontal = !horizontal;
 
 		/* Use reliefstyle to remove inset on disabled slider button */
 		if (params.disabled)



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