X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/83dc6964f0a5fce3be25bcf774981f6aae807915..7e4fb3b8168f4f2dbf2f8a246d3e094a8ccba194:/src/gtk1/renderer.cpp?ds=sidebyside diff --git a/src/gtk1/renderer.cpp b/src/gtk1/renderer.cpp index 1094858d74..e89a2beb74 100644 --- a/src/gtk1/renderer.cpp +++ b/src/gtk1/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",