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



Author: acimitan
Date: Sat Oct 11 12:46:14 2008
New Revision: 1266
URL: http://svn.gnome.org/viewvc/gtk-engines?rev=1266&view=rev

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

	* engines/clearlooks/src/clearlooks_style.c
	(clearlooks_style_draw_box):
	Let's return when detail is buttondefault, should fix #555890.



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

Modified: trunk/engines/clearlooks/src/clearlooks_draw.c
==============================================================================
--- trunk/engines/clearlooks/src/clearlooks_draw.c	(original)
+++ trunk/engines/clearlooks/src/clearlooks_draw.c	Sat Oct 11 12:46:14 2008
@@ -1254,7 +1254,6 @@
 		                                     height, radius);
 	}
 
-
 	if (params->active)
 	{
 		CairoColor shadow;

Modified: trunk/engines/clearlooks/src/clearlooks_style.c
==============================================================================
--- trunk/engines/clearlooks/src/clearlooks_style.c	(original)
+++ trunk/engines/clearlooks/src/clearlooks_style.c	Sat Oct 11 12:46:14 2008
@@ -558,6 +558,13 @@
 	}
 	else if (DETAIL ("button") || DETAIL ("buttondefault"))
 	{
+		/* We are already checking the default button with the
+		 * "clearlooks_set_widget_parameters" function, so we may occur
+		 * in drawing the button two times. Let's return then.
+		 */
+		if (DETAIL ("buttondefault"))
+			return;
+	
 		WidgetParameters params;
 		ShadowParameters shadow = { CR_CORNER_ALL, CL_SHADOW_NONE } ;
 		clearlooks_set_widget_parameters (widget, style, state_type, &params);



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