From 7d81ed516d246b5d1387f5bf1019237c5c7a8d2b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 19 Aug 2018 14:01:14 +0100 Subject: [PATCH] Update new panels when they are created. --- src/wx/audio_panel.cc | 2 ++ src/wx/text_panel.cc | 2 ++ src/wx/video_panel.cc | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/wx/audio_panel.cc b/src/wx/audio_panel.cc index 88eae5141..31998f936 100644 --- a/src/wx/audio_panel.cc +++ b/src/wx/audio_panel.cc @@ -119,6 +119,8 @@ AudioPanel::AudioPanel (ContentPanel* p) _gain->wrapped()->SetIncrement (0.5); _delay->wrapped()->SetRange (-1000, 1000); + content_selection_changed (); + _reference->Bind (wxEVT_CHECKBOX, boost::bind (&AudioPanel::reference_clicked, this)); _show->Bind (wxEVT_BUTTON, boost::bind (&AudioPanel::show_clicked, this)); _gain_calculate_button->Bind (wxEVT_BUTTON, boost::bind (&AudioPanel::gain_calculate_button_clicked, this)); diff --git a/src/wx/text_panel.cc b/src/wx/text_panel.cc index 7c2ddd7f9..68f246913 100644 --- a/src/wx/text_panel.cc +++ b/src/wx/text_panel.cc @@ -170,6 +170,8 @@ TextPanel::TextPanel (ContentPanel* p, TextType t) _y_scale->SetRange (10, 1000); _line_spacing->SetRange (10, 1000); + content_selection_changed (); + _reference->Bind (wxEVT_CHECKBOX, boost::bind (&TextPanel::reference_clicked, this)); _use->Bind (wxEVT_CHECKBOX, boost::bind (&TextPanel::use_toggled, this)); _type->Bind (wxEVT_CHOICE, boost::bind (&TextPanel::type_changed, this)); diff --git a/src/wx/video_panel.cc b/src/wx/video_panel.cc index 666c65bd4..410ec4699 100644 --- a/src/wx/video_panel.cc +++ b/src/wx/video_panel.cc @@ -247,6 +247,8 @@ VideoPanel::VideoPanel (ContentPanel* p) _frame_type->wrapped()->Append (_("3D left only")); _frame_type->wrapped()->Append (_("3D right only")); + content_selection_changed (); + _fade_in->Changed.connect (boost::bind (&VideoPanel::fade_in_changed, this)); _fade_out->Changed.connect (boost::bind (&VideoPanel::fade_out_changed, this)); -- 2.30.2