Remove more wxT() macros from samples
Also use wxString instead of wxChar* strings. Closes https://github.com/wxWidgets/wxWidgets/pull/950
This commit is contained in:
committed by
Vadim Zeitlin
parent
480047ee9a
commit
b70ed2d8c8
@@ -651,7 +651,7 @@ void MyFrame::OnPrimaryColourSelect(wxRibbonGalleryEvent& evt)
|
||||
{
|
||||
wxString name;
|
||||
wxColour colour = GetGalleryColour(evt.GetGallery(), evt.GetGalleryItem(), &name);
|
||||
AddText(wxT("Colour \"") + name + wxT("\" selected as primary."));
|
||||
AddText("Colour \"" + name + "\" selected as primary.");
|
||||
wxColour secondary, tertiary;
|
||||
m_ribbon->GetArtProvider()->GetColourScheme(NULL, &secondary, &tertiary);
|
||||
m_ribbon->GetArtProvider()->SetColourScheme(colour, secondary, tertiary);
|
||||
@@ -663,7 +663,7 @@ void MyFrame::OnSecondaryColourSelect(wxRibbonGalleryEvent& evt)
|
||||
{
|
||||
wxString name;
|
||||
wxColour colour = GetGalleryColour(evt.GetGallery(), evt.GetGalleryItem(), &name);
|
||||
AddText(wxT("Colour \"") + name + wxT("\" selected as secondary."));
|
||||
AddText("Colour \"" + name + "\" selected as secondary.");
|
||||
wxColour primary, tertiary;
|
||||
m_ribbon->GetArtProvider()->GetColourScheme(&primary, NULL, &tertiary);
|
||||
m_ribbon->GetArtProvider()->SetColourScheme(primary, colour, tertiary);
|
||||
|
Reference in New Issue
Block a user