gtk-engines r1188 - in trunk: . engines/clearlooks/src



Author: acimitan
Date: Sun May 11 21:05:22 2008
New Revision: 1188
URL: http://svn.gnome.org/viewvc/gtk-engines?rev=1188&view=rev

Log:
2008-05-11  Andrea Cimitan  <andrea cimitan gmail com>

	* engines/clearlooks/src/clearlooks_draw.c
	(clearlooks_draw_button):
	Fixes the right shadow.



Modified:
   trunk/ChangeLog
   trunk/engines/clearlooks/src/clearlooks_draw.c

Modified: trunk/engines/clearlooks/src/clearlooks_draw.c
==============================================================================
--- trunk/engines/clearlooks/src/clearlooks_draw.c	(original)
+++ trunk/engines/clearlooks/src/clearlooks_draw.c	Sun May 11 21:05:22 2008
@@ -335,6 +335,11 @@
 		ge_cairo_set_color (cr, &bottom_shade);
 		cairo_stroke (cr);
 
+		/* Draw topleft shadow */
+		params->style_functions->draw_top_left_highlight (cr, fill, params, xoffset + 1, yoffset + 1,
+		                                                  width - 2*(xoffset + 1), height - 2*(yoffset + 1),
+		                                                  MAX(radius-1, 0), params->corners);
+
 		cairo_restore (cr);
 	}
 	else
@@ -398,20 +403,6 @@
 
 	cairo_stroke (cr);
 
-	/* Draw the "shadow" */
-	if (!params->active)
-	{
-		/* Draw right shadow */
-		cairo_move_to (cr, width - xoffset - 1.5, MAX(radius, 1));
-		cairo_line_to (cr, width - xoffset - 1.5, height - MAX(radius, 1));
-		cairo_set_source_rgba (cr, shadow.r, shadow.g, shadow.b, 0.1);
-		cairo_stroke (cr);
-
-		/* Draw topleft shadow */
-		params->style_functions->draw_top_left_highlight (cr, fill, params, xoffset + 1, yoffset + 1,
-		                                                  width - 2*(xoffset + 1), height - 2*(yoffset + 1),
-		                                                  MAX(radius-1, 0), params->corners);
-	}
 	cairo_restore (cr);
 }
 



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