call gtk_paint_focus() with NORMAL state, not SELECTED, for unselected items as otherwise the focus rectangle is invisible with some themes (e.g. the Ubuntu default one) and it generally makes more sense

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-02-26 10:58:56 +00:00
parent 404ac4c67d
commit 72be9a3a27

View File

@@ -533,12 +533,16 @@ wxRendererGTK::DrawItemSelectionRect(wxWindow *win,
rect.width,
rect.height );
}
else // !wxCONTROL_SELECTED
{
state = GTK_STATE_NORMAL;
}
if (flags & wxCONTROL_CURRENT)
{
gtk_paint_focus( win->m_widget->style,
gdk_window,
GTK_STATE_SELECTED,
state,
NULL,
win->m_wxwindow,
"treeview",