projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
428ced8
)
GTK3 tweaks for the playback controls.
author
Carl Hetherington
<cth@carlh.net>
Mon, 26 Oct 2020 11:44:42 +0000
(11:44 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 26 Oct 2020 11:44:42 +0000
(11:44 +0000)
src/wx/controls.cc
patch
|
blob
|
history
diff --git
a/src/wx/controls.cc
b/src/wx/controls.cc
index 473ad8cb343e40ab1413f570dfdf3df8172b0185..782bcf1a829b6c3ee5d83f276480ae36e5fef3b8 100644
(file)
--- a/
src/wx/controls.cc
+++ b/
src/wx/controls.cc
@@
-104,10
+104,17
@@
Controls::Controls (wxWindow* parent, shared_ptr<FilmViewer> viewer, bool editor
_v_sizer->Add (h_sizer, 0, wxEXPAND | wxALL, 6);
_v_sizer->Add (h_sizer, 0, wxEXPAND | wxALL, 6);
+#ifdef __WXGTK3__
+ _frame_number->SetMinSize (wxSize (100, -1));
+ _rewind_button->SetMinSize (wxSize (48, -1));
+ _back_button->SetMinSize (wxSize (48, -1));
+ _forward_button->SetMinSize (wxSize (48, -1));
+#else
_frame_number->SetMinSize (wxSize (84, -1));
_rewind_button->SetMinSize (wxSize (32, -1));
_back_button->SetMinSize (wxSize (32, -1));
_forward_button->SetMinSize (wxSize (32, -1));
_frame_number->SetMinSize (wxSize (84, -1));
_rewind_button->SetMinSize (wxSize (32, -1));
_back_button->SetMinSize (wxSize (32, -1));
_forward_button->SetMinSize (wxSize (32, -1));
+#endif
if (_eye) {
_eye->Bind (wxEVT_CHOICE, boost::bind (&Controls::eye_changed, this));
if (_eye) {
_eye->Bind (wxEVT_CHOICE, boost::bind (&Controls::eye_changed, this));