X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/83dc6964f0a5fce3be25bcf774981f6aae807915..2fe417e4c40f5686a37d04b0e0f57a6fa6c2ceec:/src/gtk/renderer.cpp diff --git a/src/gtk/renderer.cpp b/src/gtk/renderer.cpp index 1094858d74..e89a2beb74 100644 --- a/src/gtk/renderer.cpp +++ b/src/gtk/renderer.cpp @@ -186,13 +186,19 @@ wxRendererGTK::DrawTreeItemButton(wxWindow* win, { GtkWidget *tree = GetTreeWidget(); + GtkStateType state; + if ( flags & wxCONTROL_CURRENT ) + state = GTK_STATE_PRELIGHT; + else + state = GTK_STATE_NORMAL; + // VZ: I don't know how to get the size of the expander so as to centre it // in the given rectangle, +2/3 below is just what looks good here... gtk_paint_expander ( tree->style, GTK_PIZZA(win->m_wxwindow)->bin_window, - GTK_STATE_NORMAL, + state, NULL, tree, "treeview",