- dc.DrawRectangle( item->GetX()-2, item->GetY()+offset,
- item->GetWidth()+2, total_h-offset );
+ wxRect rect( item->GetX()-2, item->GetY()+offset,
+ item->GetWidth()+2, total_h-offset );
+#ifndef __WXGTK__
+ dc.DrawRectangle( rect );
+#else
+ if ( attr && attr->HasBackgroundColour() )
+ {
+ dc.DrawRectangle( rect );
+ }
+ else
+ {
+ CalcScrolledPosition( rect.x, rect.y, &rect.x, &rect.y );
+ rect.x -= 1;
+ rect.width += 2;
+
+ gtk_paint_flat_box( m_widget->style,
+ GTK_PIZZA(m_wxwindow)->bin_window,
+ GTK_STATE_SELECTED,
+ GTK_SHADOW_NONE,
+ NULL,
+ m_wxwindow,
+ "cell_even",
+ rect.x, rect.y, rect.width, rect.height );
+
+ if ((item == m_current) && (m_hasFocus))
+ gtk_paint_focus( m_widget->style,
+ GTK_PIZZA(m_wxwindow)->bin_window,
+ GTK_STATE_SELECTED,
+ NULL,
+ m_wxwindow,
+ "treeview",
+ rect.x, rect.y, rect.width, rect.height );
+ }
+#endif