summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textfield.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-23 22:48:57 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:17 +0300
commitd3994b21fda3e7d8ba417a382fc8f065a7bf1c52 (patch)
tree420c78c8ceda39895cce60849e3aeafedd41f081 /src/gui/widgets/textfield.cpp
parent576b7dca4676ba2c1ea63afb6bbc96fd11183048 (diff)
downloadplus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.tar.gz
plus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.tar.bz2
plus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.tar.xz
plus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.zip
improve some mode methods in Client.
Diffstat (limited to 'src/gui/widgets/textfield.cpp')
-rw-r--r--src/gui/widgets/textfield.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp
index 0fec552e3..37629e44e 100644
--- a/src/gui/widgets/textfield.cpp
+++ b/src/gui/widgets/textfield.cpp
@@ -119,7 +119,7 @@ TextField::~TextField()
void TextField::updateAlpha()
{
- const float alpha = std::max(Client::getGuiAlpha(),
+ const float alpha = std::max(client->getGuiAlpha(),
Theme::instance()->getMinimumOpacity());
if (alpha != mAlpha)
@@ -550,7 +550,7 @@ void TextField::fontChanged()
void TextField::mousePressed(gcn::MouseEvent &mouseEvent)
{
#ifdef ANDROID
- if (!Client::isKeyboardVisible())
+ if (!client->isKeyboardVisible())
inputManager.executeAction(Input::KEY_SHOW_KEYBOARD);
#endif
if (mouseEvent.getButton() == gcn::MouseEvent::RIGHT)
@@ -578,7 +578,7 @@ void TextField::mousePressed(gcn::MouseEvent &mouseEvent)
void TextField::focusGained(const gcn::Event &event A_UNUSED)
{
#ifdef ANDROID
- if (!Client::isKeyboardVisible())
+ if (!client->isKeyboardVisible())
inputManager.executeAction(Input::KEY_SHOW_KEYBOARD);
#endif
}