projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69a7c25
)
Expand the DCP name entry a bit.
author
Carl Hetherington
<cth@carlh.net>
Sat, 20 Mar 2021 10:30:10 +0000
(11:30 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Sat, 20 Mar 2021 10:30:10 +0000
(11:30 +0100)
Hat-tip to Carsten Kurz for the idea!
src/wx/dcp_panel.cc
patch
|
blob
|
history
diff --git
a/src/wx/dcp_panel.cc
b/src/wx/dcp_panel.cc
index b925213ad60d186a008f40835b679e65984b20c9..6de9e3d75942590c8d4b76c3647b285700dbefa8 100644
(file)
--- a/
src/wx/dcp_panel.cc
+++ b/
src/wx/dcp_panel.cc
@@
-160,8
+160,10
@@
DCPPanel::add_to_grid ()
{
int r = 0;
- add_label_to_sizer (_grid, _name_label, true, wxGBPosition (r, 0));
- _grid->Add (_name, wxGBPosition(r, 1), wxDefaultSpan, wxEXPAND | wxLEFT | wxRIGHT);
+ auto name_sizer = new wxBoxSizer (wxHORIZONTAL);
+ name_sizer->Add (_name_label, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, DCPOMATIC_SIZER_X_GAP);
+ name_sizer->Add (_name, 1, wxALIGN_CENTER_VERTICAL);
+ _grid->Add (name_sizer, wxGBPosition(r, 0), wxGBSpan(1, 2), wxEXPAND);
++r;
int flags = wxALIGN_CENTER_VERTICAL;