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