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:
@@ -533,12 +533,16 @@ wxRendererGTK::DrawItemSelectionRect(wxWindow *win,
|
|||||||
rect.width,
|
rect.width,
|
||||||
rect.height );
|
rect.height );
|
||||||
}
|
}
|
||||||
|
else // !wxCONTROL_SELECTED
|
||||||
|
{
|
||||||
|
state = GTK_STATE_NORMAL;
|
||||||
|
}
|
||||||
|
|
||||||
if (flags & wxCONTROL_CURRENT)
|
if (flags & wxCONTROL_CURRENT)
|
||||||
{
|
{
|
||||||
gtk_paint_focus( win->m_widget->style,
|
gtk_paint_focus( win->m_widget->style,
|
||||||
gdk_window,
|
gdk_window,
|
||||||
GTK_STATE_SELECTED,
|
state,
|
||||||
NULL,
|
NULL,
|
||||||
win->m_wxwindow,
|
win->m_wxwindow,
|
||||||
"treeview",
|
"treeview",
|
||||||
|
|||||||
Reference in New Issue
Block a user