Description: a better fix for draw_flat_box() segfault
 Provide a better fix to conform to the TreeView documentation:
 .
 "The detail string depends a lot on the style properties and
 other settings. It STARTS either with "cell_even" or "cell_odd",
 and then MORE IS ADDED ..."
 .
 (http://live.gnome.org/GnomeArt/Tutorials/GtkThemes/GtkTreeView/)
Author: Stanislav Maslovski <stanislav.maslovski@gmail.com>
Bug-Debian: http://bugs.debian.org/490150
Last-Update: 2010-03-27

--- gtk2-engines-cleanice-2.4.1.orig/src/cleanice-draw.c
+++ gtk2-engines-cleanice-2.4.1/src/cleanice-draw.c
@@ -25,6 +25,7 @@
 #include "cleanice.h"
 
 #define DETAIL(xx) ((detail) && (!strcmp(xx, detail)))
+#define DETAILN(xx) ((detail) && (!strncmp(xx, detail, strlen(xx))))
 
 static void cleanice_style_init (CleanIceStyle * style);
 static void cleanice_style_class_init (CleanIceStyleClass * klass);
@@ -1010,7 +1011,7 @@ static void draw_flat_box (GtkStyle * st
     if (area) {
       gdk_gc_set_clip_rectangle (style->bg_gc[GTK_STATE_NORMAL], NULL);
     }
-  } else if (DETAIL ("cell_even") || DETAIL ("cell_odd")) {
+  } else if (DETAILN ("cell_even") || DETAILN ("cell_odd")) {
     if (state_type == GTK_STATE_SELECTED) {
       if (GTK_WIDGET_HAS_FOCUS (widget)) {
 	gdk_draw_rectangle (window, style->bg_gc[state_type], TRUE,
