-// draw a ">" or "v" button
-void
-wxRendererGTK::DrawTreeItemButton(wxWindow* win,
- wxDC& dc, const wxRect& rect, int flags)
-{
- 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,
- state,
- NULL,
- tree,
- "treeview",
- dc.LogicalToDeviceX(rect.x) + 2,
- dc.LogicalToDeviceY(rect.y) + 3,
- flags & wxCONTROL_EXPANDED ? GTK_EXPANDER_EXPANDED
- : GTK_EXPANDER_COLLAPSED
- );