mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
fix deprecated warning
This commit is contained in:
parent
f8b017ad45
commit
2d7ac600c0
25 changed files with 402 additions and 405 deletions
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
// wxWindows headers
|
||||
#include <wx/grid.h>
|
||||
|
||||
#include <wx/brush.h>
|
||||
class GroupRows;
|
||||
|
||||
class ctlSQLGrid : public wxGrid
|
||||
|
|
@ -221,23 +221,23 @@ class CursorCellRenderer : public wxGridCellStringRenderer
|
|||
clr = wxSystemSettings::GetColour(wxSYS_COLOUR_BTNSHADOW);
|
||||
|
||||
|
||||
dc.SetBrush( wxBrush(clr, wxSOLID) );
|
||||
dc.SetBrush( *wxTheBrushList->FindOrCreateBrush(clr));
|
||||
}
|
||||
else
|
||||
{
|
||||
wxColor color;
|
||||
color.Set(239, 228, 176);
|
||||
if (sPos = text.Find(wxT('\n')) != wxNOT_FOUND) {
|
||||
dc.SetBrush(wxBrush(color, wxSOLID));
|
||||
dc.SetBrush(*wxTheBrushList->FindOrCreateBrush(color));
|
||||
multiline = true;
|
||||
}
|
||||
else
|
||||
dc.SetBrush( wxBrush(attr.GetBackgroundColour(), wxSOLID) );
|
||||
dc.SetBrush(*wxTheBrushList->FindOrCreateBrush(attr.GetBackgroundColour()));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
dc.SetBrush(wxBrush(wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE), wxSOLID));
|
||||
dc.SetBrush(*wxTheBrushList->FindOrCreateBrush(wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE)));
|
||||
}
|
||||
|
||||
dc.SetPen( *wxTRANSPARENT_PEN );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue