const wxRect& rect,
int flags )
{
+ GtkWidget *tree = wxGTKPrivate::GetTreeWidget();
+
GdkWindow* gdk_window = wxGetGdkWindowForDC(win, dc);
wxASSERT_MSG( gdk_window,
wxT("cannot use wxRendererNative on wxDC of this type") );
if (win->GetLayoutDirection() == wxLayout_RightToLeft)
x_diff = rect.width;
- GtkStateType state;
+ GtkStateType state = GTK_STATE_NORMAL;
+
if (flags & wxCONTROL_SELECTED)
{
// the wxCONTROL_FOCUSED state is deduced
// directly from the m_wxwindow by GTK+
state = GTK_STATE_SELECTED;
- gtk_paint_flat_box( win->m_widget->style,
+ gtk_paint_flat_box( tree->style, // win->m_widget->style,
gdk_window,
state,
GTK_SHADOW_NONE,
if ((flags & wxCONTROL_CURRENT) && (flags & wxCONTROL_FOCUSED))
{
- gtk_paint_focus( win->m_widget->style,
+ if (flags & wxCONTROL_SELECTED)
+ state = GTK_STATE_SELECTED;
+
+ gtk_paint_focus( tree->style,
gdk_window,
state,
NULL,
// Using "treeview-middle" would fix the warning, but the right
// edge of the focus rect is not getting erased properly either.
// Better to not specify this detail unless the drawing is fixed.
- NULL,
+ // RR: I added that to the Pizza widget class.
+ "treeview",
dc.LogicalToDeviceX(rect.x),
dc.LogicalToDeviceY(rect.y),
rect.width,
G_TYPE_NONE, 2, GTK_TYPE_ADJUSTMENT, GTK_TYPE_ADJUSTMENT);
parent_class = GTK_WIDGET_CLASS(g_type_class_peek_parent(g_class));
+
+ gtk_widget_class_install_style_property (widget_class,
+ g_param_spec_boolean ("row-ending-details",
+ "Row Ending details",
+ "Enable extended row background theming",
+ FALSE,
+ G_PARAM_READABLE));
}
} // extern "C"