summaryrefslogtreecommitdiff
path: root/src/wx/kdm_timing_panel.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-10-28 22:56:23 +0100
committerCarl Hetherington <cth@carlh.net>2016-10-28 22:56:23 +0100
commitc27d6f3a7e6c79c60ffac7c616dd3a3431819862 (patch)
tree65dbc097882c052eee7e1021dc9ea35fed68956d /src/wx/kdm_timing_panel.cc
parent1b6cc1e8aa8abd05dfc9a108b35ddd7cbf50dedf (diff)
Attempt to tidy up layout of KDM window.
Diffstat (limited to 'src/wx/kdm_timing_panel.cc')
-rw-r--r--src/wx/kdm_timing_panel.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wx/kdm_timing_panel.cc b/src/wx/kdm_timing_panel.cc
index a07929b99..613b62cbf 100644
--- a/src/wx/kdm_timing_panel.cc
+++ b/src/wx/kdm_timing_panel.cc
@@ -32,23 +32,23 @@ KDMTimingPanel::KDMTimingPanel (wxWindow* parent)
{
wxBoxSizer* overall_sizer = new wxBoxSizer (wxVERTICAL);
- wxFlexGridSizer* table = new wxFlexGridSizer (6, DCPOMATIC_SIZER_X_GAP, DCPOMATIC_SIZER_Y_GAP);
+ wxSizer* table = new wxBoxSizer (wxHORIZONTAL);
add_label_to_sizer (table, this, _("From"), true);
wxDateTime from;
from.SetToCurrent ();
_from_date = new wxDatePickerCtrl (this, wxID_ANY, from);
- table->Add (_from_date, 1, wxEXPAND);
+ table->Add (_from_date);
_from_time = new TimePicker (this, from);
- table->Add (_from_time, 0);
+ table->Add (_from_time);
add_label_to_sizer (table, this, _("until"), true);
wxDateTime to = from;
/* 1 week from now */
to.Add (wxDateSpan (0, 0, 1, 0));
_until_date = new wxDatePickerCtrl (this, wxID_ANY, to);
- table->Add (_until_date, 1, wxEXPAND);
+ table->Add (_until_date);
_until_time = new TimePicker (this, to);
- table->Add (_until_time, 0);
+ table->Add (_until_time);
overall_sizer->Add (table);