summaryrefslogtreecommitdiff
path: root/src/gui/buysell.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-29 20:27:35 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-29 20:27:35 +0200
commit303943ab196534c3b4a6d9cbec8580ca4bc29b91 (patch)
tree7e98d31e661d4fd201a917fdf2ad34eea5d969b3 /src/gui/buysell.cpp
parent86ec58bf1456a6349e3ac162387a630a8ffb11d7 (diff)
downloadmana-client-303943ab196534c3b4a6d9cbec8580ca4bc29b91.tar.gz
mana-client-303943ab196534c3b4a6d9cbec8580ca4bc29b91.tar.bz2
mana-client-303943ab196534c3b4a6d9cbec8580ca4bc29b91.tar.xz
mana-client-303943ab196534c3b4a6d9cbec8580ca4bc29b91.zip
Fixed the name of the buy button member of BuySellDialog
Missed the m prefix.
Diffstat (limited to 'src/gui/buysell.cpp')
-rw-r--r--src/gui/buysell.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/gui/buysell.cpp b/src/gui/buysell.cpp
index 3032b7b1..53c2419a 100644
--- a/src/gui/buysell.cpp
+++ b/src/gui/buysell.cpp
@@ -31,10 +31,11 @@
#include "utils/gettext.h"
BuySellDialog::BuySellDialog():
- Window(_("Shop"))
+ Window(_("Shop")),
+ mBuyButton(0)
{
setWindowName("BuySell");
- buyButton = 0;
+
static const char *buttonNames[] = {
N_("Buy"), N_("Sell"), N_("Cancel"), 0
};
@@ -43,15 +44,15 @@ BuySellDialog::BuySellDialog():
for (const char **curBtn = buttonNames; *curBtn; curBtn++)
{
Button *btn = new Button(gettext(*curBtn), *curBtn, this);
- if (!buyButton)
- buyButton = btn; // For focus request
+ if (!mBuyButton)
+ mBuyButton = btn; // For focus request
btn->setPosition(x, y);
add(btn);
x += btn->getWidth() + 10;
}
- buyButton->requestFocus();
+ mBuyButton->requestFocus();
- setContentSize(x, 2 * y + buyButton->getHeight());
+ setContentSize(x, 2 * y + mBuyButton->getHeight());
center();
setDefaultSize();
@@ -71,7 +72,7 @@ void BuySellDialog::setVisible(bool visible)
Window::setVisible(visible);
if (visible)
- buyButton->requestFocus();
+ mBuyButton->requestFocus();
}
void BuySellDialog::action(const gcn::ActionEvent &event)