X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bc13e7725254be8d2b49fdbc5fde2dc6c631622a..7e4fb3b8168f4f2dbf2f8a246d3e094a8ccba194:/src/gtk1/renderer.cpp?ds=inline diff --git a/src/gtk1/renderer.cpp b/src/gtk1/renderer.cpp index c6e3f69cdc..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", @@ -396,19 +402,6 @@ void wxRendererGTK::DrawComboBoxDropButton(wxWindow *win, else state = GTK_STATE_NORMAL; - // erase background first - gtk_paint_box - ( - button->style, - wdc.m_window, - state, - GTK_SHADOW_NONE, - NULL, - button, - "button", - rect.x, rect.y, rect.width, rect.height - ); - // draw arrow on button gtk_paint_arrow (