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



Author: pborelli
Date: Sun Nov 30 13:24:04 2008
New Revision: 1282
URL: http://svn.gnome.org/viewvc/gtk-engines?rev=1282&view=rev

Log:
2008-11-30  Paolo Borelli  <pborelli katamail com>

	* engines/clearlooks/src/clearlooks_style.c
	(clearlooks_style_draw_box):
	Make sure cairo_destroy is called when detail is buttondefault.
	Reviewed by Andrea Cimitan.



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

Modified: trunk/engines/clearlooks/src/clearlooks_style.c
==============================================================================
--- trunk/engines/clearlooks/src/clearlooks_style.c	(original)
+++ trunk/engines/clearlooks/src/clearlooks_style.c	Sun Nov 30 13:24:04 2008
@@ -556,14 +556,15 @@
 		STYLE_FUNCTION(draw_list_view_header) (cr, colors, &params, &header,
 		                                       x, y, width, height);
 	}
-	else if (DETAIL ("button") || DETAIL ("buttondefault"))
+	else if (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;
+	}
+	else if (DETAIL ("button"))
+	{
 	
 		WidgetParameters params;
 		ShadowParameters shadow = { CR_CORNER_ALL, CL_SHADOW_NONE } ;



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