diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-11-23 01:05:41 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-11-29 00:15:02 +0100 |
| commit | 4d879e836147720bed8208f92d8d39bcbd661221 (patch) | |
| tree | 8a61c5ca3b39c1cdb60aa81128942ca32d1b2784 /src/wx/wx_util.cc | |
| parent | da822af56c5e4acab361b8531fb75a1dcb4b110e (diff) | |
Add default audio language configuration (#2375).
Diffstat (limited to 'src/wx/wx_util.cc')
| -rw-r--r-- | src/wx/wx_util.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc index 074f47d61..ee6663101 100644 --- a/src/wx/wx_util.cc +++ b/src/wx/wx_util.cc @@ -25,6 +25,7 @@ #include "file_picker_ctrl.h" +#include "language_tag_widget.h" #include "password_entry.h" #include "static_text.h" #include "wx_util.h" @@ -384,6 +385,24 @@ checked_set (wxRadioButton* widget, bool value) void +checked_set(LanguageTagWidget* widget, dcp::LanguageTag value) +{ + if (widget->get() != value) { + widget->set(value); + } +} + + +void +checked_set(LanguageTagWidget* widget, optional<dcp::LanguageTag> value) +{ + if (widget->get() != value) { + widget->set(value); + } +} + + +void dcpomatic_setup_i18n () { int language = wxLANGUAGE_DEFAULT; |
