summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-07-26 02:24:42 +0100
committerCarl Hetherington <cth@carlh.net>2012-07-26 02:24:42 +0100
commitb12d9d3269af8a17f74c5b7a8dba095a70c01a89 (patch)
tree77023a67f1702a5caf13f04a04bc520939125ad9 /src
parentaf67dbe553391e7cf9387ba1804429e554f4fb16 (diff)
Tweak Film Editor layout.
Diffstat (limited to 'src')
-rw-r--r--src/wx/film_editor.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc
index 604f71e62..65b41fdcf 100644
--- a/src/wx/film_editor.cc
+++ b/src/wx/film_editor.cc
@@ -51,7 +51,7 @@ FilmEditor::FilmEditor (Film* f, wxWindow* parent)
, _ignore_changes (false)
, _film (f)
{
- _sizer = new wxFlexGridSizer (2, 6, 6);
+ _sizer = new wxFlexGridSizer (2, 4, 4);
SetSizer (_sizer);
add_label_to_sizer (_sizer, this, "Name");
@@ -94,7 +94,7 @@ FilmEditor::FilmEditor (Film* f, wxWindow* parent)
{
video_control (add_label_to_sizer (_sizer, this, "Filters"));
wxSizer* s = new wxBoxSizer (wxHORIZONTAL);
- _filters = new wxStaticText (this, wxID_ANY, wxT (""));
+ _filters = new wxStaticText (this, wxID_ANY, wxT ("None"));
s->Add (_filters, 1, wxEXPAND | wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM | wxRIGHT, 6);
_filters_button = new wxButton (this, wxID_ANY, wxT ("Edit..."));
s->Add (_filters_button, 0);
@@ -345,8 +345,12 @@ FilmEditor::film_changed (Film::Property p)
case Film::FILTERS:
{
pair<string, string> p = Filter::ffmpeg_strings (_film->filters ());
- string const b = p.first + " " + p.second;
- _filters->SetLabel (std_to_wx (b));
+ if (p.first.empty () && p.second.empty ()) {
+ _filters->SetLabel (_("None"));
+ } else {
+ string const b = p.first + " " + p.second;
+ _filters->SetLabel (std_to_wx (b));
+ }
_sizer->Layout ();
break;
}