more GTK-ish toolbar drawing

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2002-03-11 11:50:10 +00:00
parent 8b3fddc493
commit 2e7b0a1617

View File

@ -1582,11 +1582,15 @@ void wxGTKRenderer::DrawToolBarButton(wxDC& dc,
if ( flags & wxCONTROL_PRESSED ) if ( flags & wxCONTROL_PRESSED )
{ {
DrawBorder(dc, wxBORDER_SUNKEN, rect, flags); DrawBorder(dc, wxBORDER_SUNKEN, rect, flags, &rect);
DrawBackground(dc, wxSCHEME_COLOUR(m_scheme, CONTROL_PRESSED), rect);
} }
else if ( flags & wxCONTROL_CURRENT ) else if ( flags & wxCONTROL_CURRENT )
{ {
DrawBorder(dc, wxBORDER_RAISED, rect, flags); DrawBorder(dc, wxBORDER_RAISED, rect, flags, &rect);
DrawBackground(dc, wxSCHEME_COLOUR(m_scheme, CONTROL_CURRENT), rect);
} }
dc.DrawLabel(label, bitmap, rect, wxALIGN_CENTRE); dc.DrawLabel(label, bitmap, rect, wxALIGN_CENTRE);