diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-12-11 14:22:30 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-12-11 17:07:55 +0100 |
commit | dead2a5b0eaae3fb33f9d2b4d249849864014585 (patch) | |
tree | 451cfaa666a376795f9512f8a58abd40130bbe92 | |
parent | ce4812ccda986386b16f0a77d443899f1f88aef6 (diff) |
Resolves: tdf#128867 support LocalizedDecimalSep for native gtk dialogs
Change-Id: Idb883707fb89d1f76b24ea592c51e28fffd2322f
Reviewed-on: https://gerrit.libreoffice.org/84952
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkinst.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index 407e99f96c45..c75eb8b68858 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -2172,6 +2172,10 @@ public: , m_nDragDropReceivedSignalId(0) , m_nDragLeaveSignalId(0) { + // tdf#128867 if localize decimal separator is active we will always + // need to be able to change the output of the decimal key press + if (Application::GetSettings().GetMiscSettings().GetEnableLocalizedDecimalSep()) + m_nKeyPressSignalId = g_signal_connect(m_pWidget, "key-press-event", G_CALLBACK(signalKey), this); } virtual void connect_key_press(const Link<const KeyEvent&, bool>& rLink) override |