From: Vadim Zeitlin Date: Mon, 26 Feb 2007 10:58:56 +0000 (+0000) Subject: call gtk_paint_focus() with NORMAL state, not SELECTED, for unselected items as other... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/72be9a3a27726e25f1b845075a4e895686e8fc69?ds=inline 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 --- diff --git a/src/gtk/renderer.cpp b/src/gtk/renderer.cpp index 86ebfa8b4a..8c6ce72a51 100644 --- a/src/gtk/renderer.cpp +++ b/src/gtk/renderer.cpp @@ -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",