- {
- if (flags & wxCONTROL_SELECTED)
- state = GTK_STATE_SELECTED;
-
- gtk_paint_focus( tree->style,
- gdk_window,
- state,
- NULL,
- win->m_wxwindow,
- // Detail "treeview" causes warning with GTK+ 2.12 Clearlooks theme:
- // "... no property named `row-ending-details'"
- // 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.
- "",
- dc.LogicalToDeviceX(rect.x),
- dc.LogicalToDeviceY(rect.y),
- rect.width,
- rect.height );
- }
+ DrawFocusRect(win, dc, rect, flags);