mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-07 06:55:52 +01:00
Define and use ShuttleGui::ConnectRoot...
... And corrected improper connections in HistoryWindow and ContrastDialog, improper because they got called with the wrong this pointer, to the control instead of the dialog. But that was harmless anyway because the handlers did not use this.
This commit is contained in:
@@ -87,6 +87,12 @@ SplashDialog::SplashDialog(wxWindow * parent)
|
||||
Move( x, 60 );
|
||||
}
|
||||
|
||||
void SplashDialog::OnChar(wxMouseEvent &event)
|
||||
{
|
||||
if ( event.ShiftDown() && event.ControlDown() )
|
||||
wxLaunchDefaultBrowser("https://www.audacityteam.org");
|
||||
}
|
||||
|
||||
void SplashDialog::Populate( ShuttleGui & S )
|
||||
{
|
||||
bool bShow;
|
||||
@@ -118,16 +124,11 @@ void SplashDialog::Populate( ShuttleGui & S )
|
||||
wxDefaultPosition,
|
||||
wxSize((int)(LOGOWITHNAME_WIDTH*fScale), (int)(LOGOWITHNAME_HEIGHT*fScale)));
|
||||
|
||||
S.Prop(0).AddWindow( icon );
|
||||
|
||||
S.Prop(0)
|
||||
#if (0)
|
||||
icon->Bind(wxEVT_LEFT_DOWN,
|
||||
[this]( wxMouseEvent const & event ) ->void {
|
||||
if ( event.ShiftDown() && event.ControlDown())
|
||||
wxLaunchDefaultBrowser("https://www.audacityteam.org");
|
||||
}
|
||||
);
|
||||
.ConnectRoot( wxEVT_LEFT_DOWN, &SplashDialog::OnChar)
|
||||
#endif
|
||||
.AddWindow( icon );
|
||||
|
||||
mpHtml = safenew LinkingHtmlWindow(S.GetParent(), -1,
|
||||
wxDefaultPosition,
|
||||
|
||||
Reference in New Issue
Block a user