From 72be9a3a27726e25f1b845075a4e895686e8fc69 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 26 Feb 2007 10:58:56 +0000 Subject: [PATCH] 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 --- src/gtk/renderer.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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", -- 2.45.2