summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/control/edit.cxx4
-rw-r--r--vcl/source/window/builder.cxx3
2 files changed, 6 insertions, 1 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index eb40448dda4f..d27105193c3e 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -230,8 +230,10 @@ void Edit::SetMaxWidthInChars(sal_Int32 nMinWidthInChars)
bool Edit::set_property(const rtl::OString &rKey, const rtl::OString &rValue)
{
- if (rKey.equalsL(RTL_CONSTASCII_STRINGPARAM("width-chars")))
+ if (rKey == "width-chars")
SetMaxWidthInChars(rValue.toInt32());
+ else if (rKey == "editable")
+ SetReadOnly(!toBool(rValue));
else
return Control::set_property(rKey, rValue);
return true;
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 5ab64b3c7881..40c0b71c9cf6 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -22,6 +22,7 @@
#include <vcl/svapp.hxx>
#include <vcl/tabctrl.hxx>
#include <vcl/tabpage.hxx>
+#include <vcl/vclmedit.hxx>
#include <svdata.hxx>
#include <svids.hrc>
#include <window.h>
@@ -698,6 +699,8 @@ Window *VclBuilder::makeObject(Window *pParent, const OString &name, const OStri
pWindow = new TabControl(pParent, WB_STDTABCONTROL|WB_3DLOOK);
else if (name == "GtkDrawingArea")
pWindow = new Window(pParent);
+ else if (name == "GtkTextView")
+ pWindow = new VCLMultiLineEdit(pParent);
else
{
sal_Int32 nDelim = name.indexOf(':');