summaryrefslogtreecommitdiff
path: root/src/wx/wx_util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-11-23 01:05:41 +0100
committerCarl Hetherington <cth@carlh.net>2022-11-29 00:15:02 +0100
commit4d879e836147720bed8208f92d8d39bcbd661221 (patch)
tree8a61c5ca3b39c1cdb60aa81128942ca32d1b2784 /src/wx/wx_util.cc
parentda822af56c5e4acab361b8531fb75a1dcb4b110e (diff)
Add default audio language configuration (#2375).
Diffstat (limited to 'src/wx/wx_util.cc')
-rw-r--r--src/wx/wx_util.cc19
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;