From f5f77f16d8c0dc23ffaf4c6a8590e4c026bfcfc8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Oct 2012 01:45:57 +0300 Subject: Add palette inheritance to textfield class. --- src/gui/widgets/textfield.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/textfield.cpp') diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp index 6c11d2e17..e8a57067b 100644 --- a/src/gui/widgets/textfield.cpp +++ b/src/gui/widgets/textfield.cpp @@ -47,11 +47,12 @@ int TextField::instances = 0; float TextField::mAlpha = 1.0; ImageRect TextField::skin; -TextField::TextField(const std::string &text, const bool loseFocusOnTab, +TextField::TextField(const Widget2 *const widget, + const std::string &text, const bool loseFocusOnTab, gcn::ActionListener *const listener, std::string eventId, const bool sendAlwaysEvents): gcn::TextField(text), - Widget2(), + Widget2(widget), mSendAlwaysEvents(sendAlwaysEvents), mNumeric(false), mMinimum(0), -- cgit v1.2.3-70-g09d2