Related: tdf#146997 no value-changed emitted for FormattedSpinButton

under gtk. When the formatter sets a value during focus out then gtk
won't emit a value-changed because it wasn't changed by gtk, move that
emission to the formatter itself

Change-Id: I6e2681b77d6effcd3abaa028e3e5383aa218863a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129306
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 6178979..6c7c086 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -5680,7 +5680,8 @@ IMPL_LINK_NOARG(SalInstanceFormattedSpinButton, UpDownHdl, SpinField&, void)

IMPL_LINK_NOARG(SalInstanceFormattedSpinButton, LoseFocusHdl, Control&, void)
{
    signal_value_changed();
    if (!m_pFormatter)
        signal_value_changed();
    m_aLoseFocusHdl.Call(*this);
}
}
diff --git a/vcl/source/app/weldutils.cxx b/vcl/source/app/weldutils.cxx
index 32d4572..f17aed2 100644
--- a/vcl/source/app/weldutils.cxx
+++ b/vcl/source/app/weldutils.cxx
@@ -244,6 +244,8 @@ IMPL_LINK_NOARG(EntryFormatter, ModifyHdl, weld::Entry&, void)
IMPL_LINK_NOARG(EntryFormatter, FocusOutHdl, weld::Widget&, void)
{
    EntryLostFocus();
    if (m_pSpinButton)
        m_pSpinButton->signal_value_changed();
    m_aFocusOutHdl.Call(m_rEntry);
}