From 40673b1710d95c58d2008c083cae542a2c226c40 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 23 Jul 2020 14:33:43 +0100 Subject: GtkSpinButton->NumericField no longer used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I2015f02840e23063fae9295437aa2d5e26fe613b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99319 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/source/window/builder.cxx | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'vcl/source/window/builder.cxx') diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index 1a6546b689a1..bebe56062866 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -1877,18 +1877,10 @@ VclPtr VclBuilder::makeObject(vcl::Window *pParent, const OString & if (extractHasFrame(rMap)) nBits |= WB_BORDER; - if (m_bLegacy) - { - connectNumericFormatterAdjustment(id, sAdjustment); - xWindow = VclPtr::Create(pParent, nBits); - } - else - { - connectFormattedFormatterAdjustment(id, sAdjustment); - VclPtrInstance xField(pParent, nBits); - xField->GetFormatter().SetMinValue(0); - xWindow = xField; - } + connectFormattedFormatterAdjustment(id, sAdjustment); + VclPtrInstance xField(pParent, nBits); + xField->GetFormatter().SetMinValue(0); + xWindow = xField; } else if (name == "GtkLinkButton") xWindow = VclPtr::Create(pParent, WB_CENTER|WB_VCENTER|WB_3DLOOK|WB_NOLABEL); -- cgit