murrine r95 - in trunk: . src



Author: acimitan
Date: Sun Nov 30 13:32:41 2008
New Revision: 95
URL: http://svn.gnome.org/viewvc/murrine?rev=95&view=rev

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

        * src/murrine_style.c (murrine_style_draw_box):
        Fixed a	memory leak. Thanks to Paolo Borelli.



Modified:
   trunk/ChangeLog
   trunk/src/murrine_style.c

Modified: trunk/src/murrine_style.c
==============================================================================
--- trunk/src/murrine_style.c	(original)
+++ trunk/src/murrine_style.c	Sun Nov 30 13:32:41 2008
@@ -757,11 +757,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
+		* "murrine_set_widget_parameters" function, so we may occur
+		* in drawing the button two times. Do nothing.
+		*/
+	}
+	else if (DETAIL ("button"))
 	{
-		if (DETAIL ("buttondefault"))
-			return;
-
 		WidgetParameters params;
 
 		murrine_set_widget_parameters (widget, style, state_type, &params);



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