diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-05-21 23:40:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-05-21 23:40:24 +0100 |
| commit | 62c15e24fcaa54a936b0e86cacce07616fea8c8e (patch) | |
| tree | aff0027c2d3b9adee9ed08c7f539eff6f078ad97 /src | |
| parent | 4910d44f346cd9dfa239b5bfaca6cbda84be1e08 (diff) | |
Slightly improve content control sensitivity.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/film_editor.cc | 10 | ||||
| -rw-r--r-- | src/wx/film_editor.h | 2 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc index 3a1fb232b..80d069ae5 100644 --- a/src/wx/film_editor.cc +++ b/src/wx/film_editor.cc @@ -831,7 +831,7 @@ FilmEditor::set_things_sensitive (bool s) setup_subtitle_control_sensitivity (); setup_show_audio_sensitivity (); - setup_content_button_sensitivity (); + setup_content_sensitivity (); } /** Called when the `Edit filters' button has been clicked */ @@ -1098,11 +1098,11 @@ FilmEditor::content_remove_clicked (wxCommandEvent &) void FilmEditor::content_selection_changed (wxListEvent &) { - setup_content_button_sensitivity (); + setup_content_sensitivity (); } void -FilmEditor::setup_content_button_sensitivity () +FilmEditor::setup_content_sensitivity () { _content_add->Enable (_generally_sensitive); @@ -1110,6 +1110,10 @@ FilmEditor::setup_content_button_sensitivity () _content_remove->Enable (selection && _generally_sensitive); _content_timeline->Enable (_generally_sensitive); + + _video_panel->Enable (selection && _generally_sensitive); + _audio_panel->Enable (selection && _generally_sensitive); + _subtitle_panel->Enable (selection && _generally_sensitive); } shared_ptr<Content> diff --git a/src/wx/film_editor.h b/src/wx/film_editor.h index ec563cf82..6238aadc6 100644 --- a/src/wx/film_editor.h +++ b/src/wx/film_editor.h @@ -105,7 +105,7 @@ private: void setup_main_notebook_size (); void setup_content (); void setup_container (); - void setup_content_button_sensitivity (); + void setup_content_sensitivity (); void setup_loop_sensitivity (); void setup_content_properties (); |
