From af1e2aacb72a17fdfb3e90bdcd939e75a8aebfb4 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 4 Apr 2012 09:04:23 +0100 Subject: implement GtkSpinButtons as NumericFields for now --- vcl/qa/cppunit/builder/demo.ui | 24 ++++++++++++++++++++++++ vcl/source/window/builder.cxx | 4 ++-- 2 files changed, 26 insertions(+), 2 deletions(-) (limited to 'vcl') diff --git a/vcl/qa/cppunit/builder/demo.ui b/vcl/qa/cppunit/builder/demo.ui index 044a45e38d7b..985c86652513 100644 --- a/vcl/qa/cppunit/builder/demo.ui +++ b/vcl/qa/cppunit/builder/demo.ui @@ -10,6 +10,30 @@ False vertical 2 + + + True + False + + + True + True + + True + + + False + True + 0 + + + + + False + True + 0 + + True diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index 71f9e048b811..377d753a8c5a 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -33,7 +33,7 @@ #include #include #include -#include +#include VclBuilder::VclBuilder(Window *pParent, rtl::OUString sUri) { @@ -97,7 +97,7 @@ Window *VclBuilder::makeObject(Window *pParent, const rtl::OString &name, bool b } else if (name.equalsL(RTL_CONSTASCII_STRINGPARAM("GtkSpinButton"))) { - pWindow = new SpinButton(pParent, WB_CENTER|WB_VCENTER); + pWindow = new NumericField(pParent, WB_RIGHT|WB_SPIN|WB_BORDER); } else if (name.equalsL(RTL_CONSTASCII_STRINGPARAM("GtkComboBox"))) { -- cgit