diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-23 21:40:41 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-23 21:40:41 +0200 |
commit | bb9a22212f83e55ebaf601a65251ccb3caf86fab (patch) | |
tree | 166aa0e7a0351b7a68d40e65b2a61afa0da51d37 /src/ui/window.c | |
parent | 35496f8a9c9cc0098210349d5c7fda3492ffd9c8 (diff) |
UI language preference; switching at runtime
IssueID #192
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 6949e245..97500b22 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -1820,6 +1820,10 @@ iBool processEvent_Window(iWindow *d, const SDL_Event *ev) { | |||
1820 | if (isMetricsChange_UserEvent(&event)) { | 1820 | if (isMetricsChange_UserEvent(&event)) { |
1821 | updateMetrics_Window_(d); | 1821 | updateMetrics_Window_(d); |
1822 | } | 1822 | } |
1823 | if (isCommand_UserEvent(&event, "lang.changed")) { | ||
1824 | invalidate_Window_(d); | ||
1825 | arrange_Widget(d->root); | ||
1826 | } | ||
1823 | if (oldHover != hover_Widget()) { | 1827 | if (oldHover != hover_Widget()) { |
1824 | postRefresh_App(); | 1828 | postRefresh_App(); |
1825 | } | 1829 | } |