[murrine] Fix gtk_paint_layout with widget == NULL



commit 1295edd8cca9066048115e393515b7f96482be1a
Author: Andrea <andrea cimitan gmail com>
Date:   Tue Mar 30 22:56:24 2010 +0200

    Fix gtk_paint_layout with widget == NULL

 src/murrine_style.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/murrine_style.c b/src/murrine_style.c
index 0ef7dcf..8cdccb9 100644
--- a/src/murrine_style.c
+++ b/src/murrine_style.c
@@ -1940,7 +1940,7 @@ murrine_style_draw_layout (GtkStyle     *style,
 	if (area)
 		gdk_gc_set_clip_rectangle (gc, area);
 
-	if (state_type == GTK_STATE_INSENSITIVE || 
+	if (widget && state_type == GTK_STATE_INSENSITIVE || 
 	    (&MURRINE_STYLE (style)->textstyle != 0 && state_type != GTK_STATE_PRELIGHT))
 	{
 		MurrineStyle *murrine_style = MURRINE_STYLE (style);



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